Skip to main content

Implementation of the pr0gramm api in python

Project description

Python api for pr0gramm.com

Installation

pip

pip3 install pypr0

Manually

For Debian and Ubuntu users:
apt install python python3-pip
pip3 install requests

Then clone the repository
git clone https://github.com/itssme/pypr0.git


For running the tests go into the cloned folder
cd pypr0

Run the tests with following command
python3 tests.py

For running tests with login
USERNAME="itssme" PASSWORD="1234" LOGIN="true" python3 tests.py


Examples

For examples see this repository: https://github.com/itssme/pypr0-examples


Release Notes

0.2.8

current version

  • added new pol flag to calculate_flag function (ref: https://github.com/itssme/pypr0/pull/10); thanks to @iFuzzle
  • fixed sql_manager and made it more resilient to API changes (new values will now be ignored and don't break the sql manager)

0.2.7

0.2.6

0.2.5

  • a lot of refactoring and cleaning up in all api functions
  • passing 'newer' to get_items_by_tag is now deprecated, instead pass 'older' as a boolean and pass an 'item' as id (just like for any other api function)
  • more extensive tests
  • passing multiple tags to items get now works again (ref: https://github.com/itssme/pypr0/pull/6); thanks to @5n0wstorm

0.2

  • added get_collection_items and get_collection_items_iterator which gets the content of a collection (replacing favorites)

0.1.7

  • updated to python3

thanks to @FritzJo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypr0-0.2.8.tar.gz (25.3 kB view hashes)

Uploaded Source

Built Distribution

pypr0-0.2.8-py3-none-any.whl (25.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page