Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
scraper
.gitignore
Dockerfile
Pipfile
Pipfile.lock
README.md
crontab
main.py
storage.py
twitter.py

README.md

twbot

Twitter Bot; tweet the essays of エッセイ一覧 | ソフトウェアアーキテクトが知るべき97のこと.

@97things_bot

dependencies

  • python3.6+
  • cron

usage

  1. Prepare the following Twitter API Key and Set environment variables

    • CONSUMER_KEY
    • CONSUMER_SECRET
    • ACCESS_TOKEN
    • ACCESS_TOKEN_SECRET
  2. Build docker image and Run

     docker build -t twbot .
     docker run --rm --name twbot -e CONSUMER_KEY -e CONSUMER_SECRET -e ACCESS_TOKEN -e ACCESS_TOKEN_SECRET twbot
    
  3. Scrape the essays of エッセイ一覧 | ソフトウェアアーキテクトが知るべき97のこと

     docker exec -it twbot /bin/bash
     cd /opt/app/scraper
     scrapy crawl software-architect -o ../data/sa.json
     exit # logout shell by exec command
    
You can’t perform that action at this time.