Code Monkey home page Code Monkey logo

distroparser's Introduction

distroParser

Small python program to download XML from DistroWatch, parse, and maintain newly released Linux ISO torrent files.

Keeps track of how old the XML is, limiting to 1 update per day by default changed by modifying xml_age_to_keep.

Removes old torrent files, limited to 1 year by default changed by modifying distro_age_to_keep.

Meant to be used in conjunction with cron in a linux system to maintain/seed current Linux ISO torrent files.

To Use:

Place file in whatever directory suites you.

Modify the variables torrentXML, logDir, and torrentDir to the full path you'd like for each. Please note that the log file must be named message.log and the torrent XML torrents.xml.

Ensure the torrentDir variable matches the full path of the watch directory of your torrent client.

Enable execution of the script with sudo chmod a+x ./distroParser.py

Ensure that all files have adequate permissions for the user. sudo chown -R $USER /FULL/PATH/TO/DIR/

Can then put an entry in crontab for automatic updates to torrent files using:

/usr/bin/python3 /FULL/PATH/TO/distroParser.py

Note, the log file will continuously append the output and a list of torrents/xml downloaded (if any). It will keep a log for 3 months and start anew if the file is found to be older than this.

Note 2, some torrent clients append .added to the filename of the torrent file once it's been worked. This program checks for the filename + .added.

Will be updating pop, soon.

distroparser's People

Contributors

stucamp avatar

Watchers

 avatar  avatar  avatar

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.