Skip to content

📖 fully automated telegram channel with new books about IT

License

Notifications You must be signed in to change notification settings

tommsawyer/itbooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrape Publish Go Report Card codecov

Fully automated telegram channel that publishes all new and upcoming books about IT.

How it works

Every day we collect information from book publishers that publish books on IT topics. These books are stored in the database. Another script checks daily for new books and publish them into telegram channel.

Local development

  1. Install golang, docker and docker-compose
  2. Obtain telegram bot token as described here
  3. Create telegram channel to test books publishing
  4. Set up environment variables:
export TELEGRAM_TOKEN=token_from_step_2
export TELEGRAM_CHANNEL=@channel_name_from_step_3
  1. Run make postgres to spin up testing database
  2. Run make migrate to run migrations on testing database
  3. Run make scrape to scrape publishers and save books into postgres
  4. Run make publish to publish one of the scraped books

You should see one of the books published in your telegram channel at this moment. Explore ./build/itbooks --help to see what other commands do we have.

About

📖 fully automated telegram channel with new books about IT

Topics

Resources

License

Stars

Watchers

Forks