1

I subscribe to a news site that frequently publish a page with a show in an enbeded video (the show) and a link to the MP3 of the show. The page is available to anyone but you need a valid subscription to see the video and download the MP3.

New shows are published on a public RSS flux with a link to the show page.

I have of course a subscription to the show.

I was wondering what collection of plugins/tools I should use to:

  1. Trigger the script when there is a RSS publication

  2. Connect to the page through my browser already logged on the website. (Maybe Selenium?)

  3. Download the MP3 link (the <a> tag for the MP3 always use the same class).

I am on Windows 10.

migrated from superuser.com Jan 7 '17 at 19:42

This question came from our site for computer enthusiasts and power users.

0

You could do this with a couple of python libraries working together:

  • RSS Feed Parser for which the example here may be very useful
  • youtube-dl supports 1000s of services and can download the videos & audio file from them including posting a username & password, etc. if your news site is a popular one it is probably supported or if that is not working for the service you are using
  • Mechanize can act like a browser, including cookies, etc., and can pretend to be a number of browser types or any of a number of other python web client libraries

Your python script could query the RSS feed to check for new posts and if there are any connect to the web server, log on and download the Video &/or MP3 file(s).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy