A Python wrapper for tweakers.net
pip install tweakers
import tweakers
With the tweakers.gathering
module you can access the forum.
for topic in tweakers.gathering.active_topics():
print(topic.title)
for topic in tweakers.gathering.search('tweakers.net'):
print(topic.title)
topic = Topic("https://gathering.tweakers.net/forum/list_messages/1551828")
for comment in topic.comments(page=1):
print(comment.user.name, comment.text)
for comment in topic.comment_stream():
print(comment.user.name, comment.text)
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)