Role | Time Frame | Tools and Methods |
---|---|---|
Developer | July 2020 | Python, Beautiful Soup, Discord API |
Discord has become overwhelmingly popular in recent years. It provides an all-in-one experience for users that are interested in gaming and socializing. “Automated programs that look and act like users and automatically respond to events and commands on Discord are called bot users. Discord bot users (or just bots) have nearly unlimited applications.” (Alex Ronquillo, RealPython)
import requests
from bs4 import BeautifulSoup
def getDetails(URL):
page = requests.get(URL).text
soup = BeautifulSoup(page, 'html.parser')
model = getModel(soup)
color = getColor(soup)
price = getPrice(soup)
return model + '\n' + color + '\n' + price
@bot.command(name='converse')
async def conversePrice(ctx):
response = converse.getString()
await ctx.send(response)