is there a way to get the link from digg through its rss feed? or do i have to get the website and manually scrape it with a regex?
i want to get the real link digg points to, not to the comments feed, from rss.
goes to
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It looks like you will need to use the Digg API to get the actual links to the stories, and not just the link to the digg comments. The API can give you data in XML or JSON, both of which are easily handled in python — lxml and simplejson both work well.
The other option, if you are really keen to using the RSS feeds, is to parse the digg links and then scrape the links off of that page — but that is going to be less efficient and more prone to breaking.
I’ve run into this issue on similar social news and blog sites — basically they want you to land on their page before you go off to read the actual story. Understandable, but kind of annoying from a scripting point-of-view.