I am trying to make a discord bot using python for my friend’s Warframe clan that scrapes content from the Warframe PC Announcements section. I was wanting to use the discord bot to send it as an Embed in the Discord Chat
Here is some code I have tried
import urllib
from bs4 import BeautifulSoup
import lxml
url = "http://forums.warframe.com/forum/2-pc-announcements/?sortby=start_date&sortdirection=desc"
from bs4 import BeautifulSoup
import requests
import lxml
sess = requests.Session()
page = sess.get(url)
page = BeautifulSoup(page.text, features="lxml")
soap = page.select('li.item', features="lxml")
print([s.find('li').text for s in soap])