tweakers


Nametweakers JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/timotk/tweakers
SummaryA Python wrapper for tweakers.net
upload_time2023-07-29 18:51:56
maintainer
docs_urlNone
authorTimo
requires_python>=3.7,<3.12
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # Tweakers
![Build](https://github.com/timotk/tweakers/workflows/Build/badge.svg)
[![codecov](https://codecov.io/gh/timotk/tweakers/branch/master/graph/badge.svg)](https://codecov.io/gh/timotk/tweakers)
[![PyPI](https://img.shields.io/pypi/v/tweakers.svg)](https://pypi.org/project/tweakers)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tweakers.svg)

A Python wrapper for [tweakers.net](https://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)
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/timotk/tweakers",
    "name": "tweakers",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<3.12",
    "maintainer_email": "",
    "keywords": "",
    "author": "Timo",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c1/25/6f9f2af5e5deb7d3b11c7ec77e9671c39170ffbbea007b93b7d03ed444d6/tweakers-0.4.0.tar.gz",
    "platform": null,
    "description": "# Tweakers\n![Build](https://github.com/timotk/tweakers/workflows/Build/badge.svg)\n[![codecov](https://codecov.io/gh/timotk/tweakers/branch/master/graph/badge.svg)](https://codecov.io/gh/timotk/tweakers)\n[![PyPI](https://img.shields.io/pypi/v/tweakers.svg)](https://pypi.org/project/tweakers)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tweakers.svg)\n\nA Python wrapper for [tweakers.net](https://tweakers.net/)\n\n## Install\n```\npip install tweakers\n```\n\n## Usage\n```\nimport tweakers\n```\n\n### Gathering\nWith the `tweakers.gathering` module you can access the forum.\n#### Active topics\n```\nfor topic in tweakers.gathering.active_topics():\n    print(topic.title)\n```\n\n#### Search\n```\nfor topic in tweakers.gathering.search('tweakers.net'):\n    print(topic.title)\n```\n\n### Topic\n#### Get comments for a specific topic\n```\ntopic = Topic(\"https://gathering.tweakers.net/forum/list_messages/1551828\")\nfor comment in topic.comments(page=1):\n    print(comment.user.name, comment.text)\n```\n\n#### Generate new comments as they are added\n```\nfor comment in topic.comment_stream():\n    print(comment.user.name, comment.text)\n```\n\n### Login\n```\ntweakers.login(\"YOUR_USERNAME\", \"YOUR_PASSWORD\")\n```\nNow you can access pages that are unavailable for logged out users:\n```\nfor topic in tweakers.gathering.bookmarks():\n    print(topic.name)\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python wrapper for tweakers.net",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/timotk/tweakers",
        "Repository": "https://github.com/timotk/tweakers"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50b13dfd2bcd9b594dedb65cfc6aed5d1cc107f335cc995436caa0824cc0c29f",
                "md5": "0e80e710f2d3826dd8f6a2a75689af47",
                "sha256": "42b5e23bfce704bf5cade8f877a92a0077bef972bcebaacaba6d4b8ca088d990"
            },
            "downloads": -1,
            "filename": "tweakers-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0e80e710f2d3826dd8f6a2a75689af47",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<3.12",
            "size": 9242,
            "upload_time": "2023-07-29T18:51:54",
            "upload_time_iso_8601": "2023-07-29T18:51:54.929725Z",
            "url": "https://files.pythonhosted.org/packages/50/b1/3dfd2bcd9b594dedb65cfc6aed5d1cc107f335cc995436caa0824cc0c29f/tweakers-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1256f9f2af5e5deb7d3b11c7ec77e9671c39170ffbbea007b93b7d03ed444d6",
                "md5": "2e7045571e6eb52048f71458e9ee9da0",
                "sha256": "2cdb2c4cdde6d5cb84ddb909d0a873008036ac598797797b8b326e2ce12f8611"
            },
            "downloads": -1,
            "filename": "tweakers-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2e7045571e6eb52048f71458e9ee9da0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<3.12",
            "size": 6967,
            "upload_time": "2023-07-29T18:51:56",
            "upload_time_iso_8601": "2023-07-29T18:51:56.308680Z",
            "url": "https://files.pythonhosted.org/packages/c1/25/6f9f2af5e5deb7d3b11c7ec77e9671c39170ffbbea007b93b7d03ed444d6/tweakers-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-29 18:51:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "timotk",
    "github_project": "tweakers",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tweakers"
}
        
Elapsed time: 0.98362s