Files
tilde-projects/Code/irc/util/chopra.py
T

8 lines
254 B
Python
Raw Normal View History

2019-03-15 10:20:44 -04:00
#!/usr/bin/python3
import requests
from bs4 import BeautifulSoup
def getWisdom():
url = "http://www.wisdomofchopra.com/iframe.php"
html = BeautifulSoup(requests.get(url).content, "html.parser")
return html.find("td", { "id": "quote" }).text