Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsoliangwu0130/ptt-search
A simple Python script to fetch PTT post from the command line.
https://github.com/tsoliangwu0130/ptt-search
crawler ptt python
Last synced: 6 days ago
JSON representation
A simple Python script to fetch PTT post from the command line.
- Host: GitHub
- URL: https://github.com/tsoliangwu0130/ptt-search
- Owner: tsoliangwu0130
- License: mit
- Created: 2017-09-01T17:25:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:43:27.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T20:27:02.890Z (over 1 year ago)
- Topics: crawler, ptt, python
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ptt-search [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
A simple Python script to fetch PTT post from the command line.
## Usage
1. To install all dependencies, simply run:
```
$ pip install -r requirements.txt
```2. Fetch posts
```
$ python ptt-search.py -b 'gossiping' -k '新聞 iPhone 蘋果'
```## Options
```
Usage: ptt-search.py [options]Options:
-h, --help show this help message and exit
-b search posts in a board (required)
-k search posts with keywords (separate keywords with space)
-n search how many posts
-z search posts with push more than an amount
```