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.