View Single Post
Old 06-12-2010, 12:58 PM   #2091
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by gambarini View Post
Take a look at this feed:
http://www.auto.it/rss/prove+6.xml
I looked. First, let me fix your English. It's far, far better than my Italian, but you used the word "tablet" and it took me a while to figure out you were asking about "tabs" on the article links that the feed sent you to.

Quote:
Every link in the feed links you to the first "tab" on an article page that has additional tabs; the additional tabs are about the same "car". The link for all tabs for each car on the first page/tab change only in one part, and always in the same way for every other article (about other cars).
The above revised phrasing would be a bit more clear, in case others want to pitch in. Basically, there is a single feed for multiple articles, each article being about a single car. The link takes you to a first page, and that page has additional tabs, each one being created the same way, so if you know the article link for a car, you can figure out the links to the other tabs for that car.

Quote:
is there the possibility to add the others tabs to the link of the feeds?
One option is to create an epub only for this feed, and use every link of the feed like a feed (a section title), and automatic create the details of the feed with all the links regarding tabs of the same article.

Is it correct?
Yes, you could do it that way, and I think it makes the most sense. You could scrape the RSS feed as a web page with parse_index. You would build a separate feed for each car, then build the article links for each car feed from the known way that the links for the tabs are created.

Another way would be to try to just allow recursion to the deeper tab links on each page. You might have to modify the page to get access to the links. This would give you a single feed, with a link to each car, and your reader would then link from the first page to the next pages.

A third way would be to use preprocess_html and the soup to grab the tab links and add them to each page - the way multipage is done.
Starson17 is offline