![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2010
Device: kindle 3 wifi
|
"clicking" a link
I spent a few hours last night looking through the forums and online documentation but I'm stuck. I don't know any Python nor regex. I'm hoping if I can describe what I need well enough someone here can give me the code I need.
I'm working with the "instapaper.com" recipe. As it stands, it fetches any documents in the "unread" folder just fine but then these documents stay unread so the next time I fetch I get the same documents over and over. Instapaper's website has an "archive" link which will move a document out of the "unread" folder and into the "archives" folder. What I'd like to do is modify the "instapaper.com" recipe to click the "archive" link for each document it processes. I can see all my unread documents here: http://www.instapaper.com/u Here is a sample link (created by the "print_version" function) that gets fetched: http://www.instapaper.com/text?u=htt...icle=102170798 Here is the link which would archive that same article: http://www.instapaper.com/skip/102170798 So what I need is to create a url which is a combination of http://www.instapaper.com/skip/ and the article number 102170798 and I can get the article number from the "fetch" url by getting all the text after "article=" So this seems like something one can do. Another option might be... the html for the archive link looks like this: <a title="Move to Archive" class="actionButton archiveButton" id="skip102170798" href="/skip/102170798">Archive</a> Maybe it's possible to iterate over all the anchor tags and look for any with class="actionButton archiveButton" and then follow that url. Thanks for any help. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creator taking control of the "first page" link in the "content" menu | cyberbaffled | Kindle Formats | 2 | 07-11-2010 04:21 PM |
Here is the link: "A Christmas Carol Gift Pack" | Robertb | Astak EZReader | 26 | 11-26-2009 02:24 PM |
Interesting link to "E-Book Universe" chart | Xia | News | 7 | 10-02-2009 04:33 PM |
Mobile Slate "Read full article" link | Arnaud | Workshop | 0 | 02-24-2009 04:47 AM |
"Start Reading" link in mobipocket | Jellby | Bookeen | 13 | 09-14-2008 02:55 PM |