GithubHelp home page GithubHelp logo

oregonpillow / myanonamouse-newspaper-downloader Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 204 KB

This is a simple script to automatically download torrents from myanonamouse rss feeds.

License: MIT License

Python 100.00%

myanonamouse-newspaper-downloader's Introduction

Haugene-Mouse

image

This is a simple script to automatically download torrents from MyAnonamouse rss feeds. The most sensible use case would be for downloading periodicals or other frequently updated rss feeds.

It's ideally designed for using alongside legendary Haugene torrent container since you can expose a proxy service on the container then use that proxy within the script http requests - ensuring that the rss feed is accessed from the same ip that Transmission uses. However you can use the script without the proxy or use a proxy of your choosing.

How it works

The script downloads the torrents from the rss feeds and adds them to your Transmission downloads folder as normal. However, it also copies the completed files to another folder of your choosing (rss_completed_path). The benefit of this is that it seperates your rss files from all the other torrents you have in Transmission downloads folder. This way, since i'm running the Haugene container on a server, i can conveniently rsync the rss_completed_path folder to my laptop while keeping any seeding torrents in the original Transmission downloads folder.

Requirements

  • Python3

Running the script

git clone https://github.com/oregonpillow/Haugene-Mouse.git

1. Modify the setup parameters in rss_downloader.py:

#Set up parameters
proxies = {
'http': '<ip>:<port>',
'https': '<ip>:<port>'
}

transmission_completed_path = '<path>' #transmission's completed download folder
transmission_watch_path = '<path>' #transmission's monitored/watched downloads folder
rss_completed_path = '<path>' #path to where successfully downloaded rss torrents should be copied to

rss_feeds = [
'<feed url>', #rss_feed1
'<feed url>', #rss_feed2
'<feed url>', #rss_feed3
]

2. Additionally, you can modify:

latest_files = 10

sets how many of the most recent files on the rss feed you want to download. Useful if you only want to download the most recent files each time.

cleanup(rss_completed_path,30)

sets how many files can live in your rss_completed_path folder. Helps prevent the folder becoming bloated over time. A sensible upper limit would be: latest_files * len(rss_feeds) since this insures that all files you want to download can fit in the download folder. But setting to smaller number is fine if you want to limit how many files you keep there at any given time.

3. Run the script using python

python rss_downloader.py

References

myanonamouse-newspaper-downloader's People

Contributors

oregonpillow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

myanonamouse-newspaper-downloader's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.