-
Notifications
You must be signed in to change notification settings - Fork 94
Library Requirements
Library requirements are powerful python modules that someone created to make my life easier. It allows me to perform a lot of actions within my code without have to recreate it every time I make something. It also serves as a way to often have the power of hundreds of lines of code by calling one function. Here are the main libraries that my cogs may use. You can download them now and not have to worry about it again.
Tabulate is a library that makes it easy to display tabular data. It's extremely simple for me to make a very neat looking table with this library.
BeautifulSoup4 is a webscraping library. I use this for a lot of my game info / wiki cogs. When something does not a RESTful api (Basically something that is super easy to pull data from), you have to scrape the website manually. Even with BeautifulSoup there is a lot of work involved looking through the site's html. There are other webscrapers but bs4 is what I feel most comfortable with at this time.
While this wiki contains a lot of information, some of it may be incomplete. If the information contained here still does not answer your question, feel free to pop over to my support channel on Red - Cog Support Server.