|12-24-2010, 01:18 PM||#1|
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:
Here is a sample link (created by the "print_version" function) that gets fetched:
Here is the link which would archive that same article:
So what I need is to create a url which is a combination of
and the article number
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 Tools||Search this Thread|
|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 05:21 PM|
|Here is the link: "A Christmas Carol Gift Pack"||Robertb||Astak EZReader||26||11-26-2009 03:24 PM|
|Interesting link to "E-Book Universe" chart||Xia||News||7||10-02-2009 05:33 PM|
|Mobile Slate "Read full article" link||Arnaud||Workshop||0||02-24-2009 05:47 AM|
|"Start Reading" link in mobipocket||Jellby||Bookeen||13||09-14-2008 03:55 PM|