Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

dearrrfish/wechat-subscriptions-rss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS Feed Generator for Wechat Official Accounts

Python3 only! Sogou crawler credit to Chyroc/WechatSogou!

Installation:

# Install dependecies
pip3 install lxml feedgen python-dateutil requests Werkzeug PyMySQL

# Clone repo
git clone https://github.com/dearrrfish/wechat-subscriptions-rss wrss
cd wrss

# Initialize database
# Create a database named `wechat`, then:
mysql -u root -p < sql/000-init.sql

# Copy from example of `config.json`, edit as your preferences
cp config.json.example config.json
vim config.json

# Run to test
python3 main.py dapapi

Syntax:

python3 main.py [-options] wechat_ids...

Options:

  • -c|--config - given path of custom config file, eg. -c ~/config.wrss.json
  • --db-host, --db-user, --db-password, --db-database - override database parameters
  • --message-path - custom location to store json files of message details, default: messages/
  • --message-types - message types included in final feed. (unfinished, force to be POST)
  • --message-ignore-check - skip fetching new messages, dev use
  • --feed-path - custom location to output RSS feed xml file, default: feeds/
  • --feed-max - max number of messages adding into feed, default: 20
  • --feed-ignore-check - skip checking if has_new_messages, force generating feed
  • --syslog - output log messages to syslog

Examples:

python3 main.py --feed-path /var/www/wrss/ --feed-ignore-check --syslog dsmovie sensualguru

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages