Jump to content

Is there a way to automatically download new files?


G+_Adam EL-Idrissi
 Share

Recommended Posts

Is there a way to automatically download new files? I want to have a way to automatically download the newest audio of know how as well as other twit shows. I know there are podcast apps and such to do it but not sure if there is a way to do it in Linux. Plus I want to do that style if check and auto download for other sites when they upload new videos or audio.

Link to comment
Share on other sites

I see how RSS would work but I mainly have been looking around to have something look for updates on websites (like defcons media server) and then when it sees a new file, downloads it automatically. From what I've seen with RSS is it just let's you know. I guess my main question is there a way to program or have a script to do this to run on a RPI server. Not really a programmer so how to get started is above my head.

Link to comment
Share on other sites

Website change detection is a complex task. It can be done, but it depends on the site. It helps if the markup is well structured and makes minimal dynamic changes. In the old days, the category was called "screen scraping"

 

Take a look at urlwatch as a starting point: https://thp.io/2008/urlwatch/

 

The benefit to RSS is that it's a standardized format and it's designed to make it easy to see when new data is added and where the important content is located.

 

You'll likely need some HTML DOM parsing tools, and then some scripting to make it do what you need. It'll follow a similar train of thought to this:

 

"In the content area labeled 'main_content' look for all links that start with 'news/' and then download them".

 

The Pi could handle this task depending on the volume of sites being checked. You could check a lot before reaching its limit.

Link to comment
Share on other sites

 Share

×
×
  • Create New...