Giter Site home page Giter Site logo

wooodhead / tpb2rss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erickpires/tpb2rss

0.0 1.0 0.0 112 KB

Generates a RSS feed from a thepiratebay.org search.

License: Apache License 2.0

JavaScript 2.40% Python 70.63% Shell 3.34% HTML 23.63%

tpb2rss's Introduction

TPB2RSS


Attention

I'm no longer maintaining this repository.

More info here.


A python script to generate a RSS feed from a The Pirate Bay search

Usage

from tpb2rss import ThePirateFeed

feed = ThePirateFeed(input_string, force_most_recent, tpburl, agent)

Input:

  • input_string (required): search term or URL (string)

  • force_most_recent (optional, True by default): ignores any info on pagination and ordination from the given URL, forcing it to return the most recent items by upload date (boolean)

  • tpburl (optional, https://thepiratebay.se by default): set a mirror to use (string)

  • agent (optional, Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36 by default): set an User Agent when downloading the page (string)

Output:

  • feed.xml: the requested page formatted as XML following the RSS 2.0 specification (string or None)

  • feed.status.code: HTTP status code returned by urllib (integer)

  • feed.status.reason: description of the HTTP status code (string)

Installing on OpenShift

  1. Create a Python 3.3 application

  2. Clone the application you created.

  3. Clone this repository inside your application's repo.

    git clone https://github.com/camporez/tpb2rss.git tpb2rss
    
  4. Move the required files to the root of your application's repo.

    mv tpb2rss/*.py .
    rm -rf tpb2rss
    
  5. Commit and push your changes.

    git add .
    git commit -m "Installing TPB2RSS."
    git push
    

Dependencies

Python >= 3.3

License

Apache License 2.0

tpb2rss's People

Contributors

brunelli avatar erickpires avatar

Watchers

 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.