Skip to content

A python discord bot to scrap some data of PACKT editor free daily book

Notifications You must be signed in to change notification settings

marcmelis/simple_webscrapping_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple WebScrapping Practice

A python discord bot server to scrap some data of PACKT editor daily free book using BeautifulSoup4 and discord.py.

https://www.packtpub.com/packt/offers/free-learning/

Book cover saved as 'book_cover.jpg'

Usage

Generate a discord app token and save it as token.priv. Otherwise you can use this bot already prepared to test.

echo -n 'NDIzMDc4OTEyODQzNzEwNDY0.DYlGiQ.rrCk8vz5qvX8VeS92fikSXqc00A' > token.priv

Then do the following to start the server:

python3 discord_server.py

In the case you are using the already prepared token use this link to invite the bot to your discord server. Otherwise you can generate your by replacing the CLIENTID in the following link with your bot's client ID:

https://discordapp.com/oauth2/authorize?client_id=CLIENTID&scope=bot

When the bot is in the server type !book in any channel that the bot is allowed to write to use it.

Requirements

  • Python 3.4.2+
  • aiohttp library
  • websockets library
  • discord.py library

About

A python discord bot to scrap some data of PACKT editor free daily book

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages