Skip to main content

A Python wrapper for tweakers.net

Project description

Tweakers

Build codecov PyPI PyPI - Python Version

A Python wrapper for tweakers.net

Install

pip install tweakers

Usage

import tweakers

Gathering

With the tweakers.gathering module you can access the forum.

Active topics

for topic in tweakers.gathering.active_topics():
    print(topic.title)

Search

for topic in tweakers.gathering.search('tweakers.net'):
    print(topic.title)

Topic

Get comments for a specific topic

topic = Topic("https://gathering.tweakers.net/forum/list_messages/1551828")
for comment in topic.comments(page=1):
    print(comment.user.name, comment.text)

Generate new comments as they are added

for comment in topic.comment_stream():
    print(comment.user.name, comment.text)

Login

tweakers.login("YOUR_USERNAME", "YOUR_PASSWORD")

Now you can access pages that are unavailable for logged out users:

for topic in tweakers.gathering.bookmarks():
    print(topic.name)

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

tweakers-0.4.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

tweakers-0.4.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file tweakers-0.4.0.tar.gz.

File metadata

  • Download URL: tweakers-0.4.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for tweakers-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2cdb2c4cdde6d5cb84ddb909d0a873008036ac598797797b8b326e2ce12f8611
MD5 2e7045571e6eb52048f71458e9ee9da0
BLAKE2b-256 c1256f9f2af5e5deb7d3b11c7ec77e9671c39170ffbbea007b93b7d03ed444d6

See more details on using hashes here.

File details

Details for the file tweakers-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: tweakers-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for tweakers-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42b5e23bfce704bf5cade8f877a92a0077bef972bcebaacaba6d4b8ca088d990
MD5 0e80e710f2d3826dd8f6a2a75689af47
BLAKE2b-256 50b13dfd2bcd9b594dedb65cfc6aed5d1cc107f335cc995436caa0824cc0c29f

See more details on using hashes here.

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