Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lynkynpark86

macrumors 6502
Original poster
There is a website that has the number of downloads of a file on it, and I want to create a command to return, through echo or print, the number of downloads. How might I go about doing this?
When I view the source of the website, it only shows the number itself, not a data source or anything.
 
You would need to write something that took in the html of the website, stripped out the information you are looking for (possibly doing more than just paring for urls), and then returns that as a list.

Python and the urllib2 class would probably be how I would start this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.