Beispiel #1
0
def ZLife_Sina(request):
    postSite = "ZLife_Sina"
    url = "feed://blog.sina.com.cn/rss/1650910587.xml"
    about_url = "http://blog.sina.com.cn/s/profile_1650910587.html"
    blog_type = "sina"
    htmlpages = {}
    aboutContent = getAboutPage(about_url, blog_type)
    if aboutContent == "Not Found":
        aboutContent = "Z is telling about his own life....and all contents are extracted from his blog.."
    htmlpages["about"] = {}
    htmlpages["about"]["content"] = aboutContent
    htmlpages["about"]["title"] = "About Z Life"
    htmlpages["about"]["url"] = about_url
    PostInfos = []
    PostInfos = getPostInfos(postSite, url, blog_type)
    return render_to_response("l2zstory.html", {"PostInfos": PostInfos, "htmlpages": htmlpages})
Beispiel #2
0
def ZLife(request):
    postSite = "ZLife"
    url = "feed://ireallife.wordpress.com/feed/"
    about_url = "http://ireallife.wordpress.com/about/"
    blog_type = "wordpress"
    htmlpages = {}
    aboutContent = getAboutPage(about_url, blog_type)
    if aboutContent == "Not Found":
        aboutContent = "Z is telling about his own life....and all contents are extracted from his blog.."
    htmlpages["about"] = {}
    htmlpages["about"]["content"] = aboutContent
    htmlpages["about"]["title"] = "About Z Life"
    htmlpages["about"]["url"] = about_url
    PostInfos = []
    PostInfos = getPostInfos(postSite, url, blog_type)
    return render_to_response("l2zstory.html", {"PostInfos": PostInfos, "htmlpages": htmlpages})
Beispiel #3
0
def YukiLife(request):
    postSite = "YukiLife"
    url = "feed://blog.sina.com.cn/rss/1583902832.xml"
    about_url = "http://blog.sina.com.cn/s/profile_1583902832.html"
    blog_type = "sina"
    htmlpages = {}
    aboutContent = getAboutPage(about_url, blog_type)
    if aboutContent == "Not Found":
        aboutContent = "All contents are extracted from what Yuzi wrote for her life.."
    htmlpages["about"] = {}
    htmlpages["about"]["content"] = aboutContent
    htmlpages["about"]["title"] = "About Yuki Life"
    htmlpages["about"]["url"] = about_url
    PostInfos = []
    PostInfos = getPostInfos(postSite, url, blog_type)
    return render_to_response("l2zstory.html", {"PostInfos": PostInfos, "htmlpages": htmlpages})
Beispiel #4
0
def L2ZStory(request):
    postSite = "L2ZStory"
    feedurl = "feed://l2zstory.wordpress.com/feed/"
    about_url = "http://l2zstory.wordpress.com/about/"
    blog_type = "wordpress"
    htmlpages = {}
    aboutContent = getAboutPage(about_url, blog_type)
    if aboutContent == "Not Found":
        aboutContent = "We use this to tell those past stories..."
    htmlpages["about"] = {}
    htmlpages["about"]["content"] = aboutContent
    htmlpages["about"]["title"] = "About This Story"
    htmlpages["about"]["url"] = about_url

    # PostInfos is a list of dictionarys
    PostInfos = getPostInfos(postSite, feedurl, blog_type, order_desc=False)

    return render_to_response("l2zstory.html", {"PostInfos": PostInfos, "htmlpages": htmlpages})