View Single Post
Old 10-10-2013, 06:07 PM   #1
mr.w0lf
n00b
mr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with othersmr.w0lf plays well with others
 
Posts: 58
Karma: 2802
Join Date: Jan 2012
Device: Kindle Touch
parse_index() question

Hi, I am using parse_index to build my recipe, problem is that site where i getting everything gives out not a valid HTML page, instead just the content of the article i want to read (so no html/head/body tag, just the tags included in the article).

Calibre is working nice, except that gives me back a file with no content inside.. maybe is because of the strange situation i have described? solutions? do i have to do something like putting an article template before write the temp file (see spoiler)?

Spoiler:

header = '<html><head><title>bla bla bla</title></head><body>'
footer = '</body></html>'
foo.write(header+article+footer)


mr.w0lf is offline   Reply With Quote