Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```