2018-09-01 19:16:07 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import requests
|
|
|
|
from bs4 import BeautifulSoup
|
|
|
|
|
|
|
|
def get_fml(url):
|
|
|
|
r = requests.get(url)
|
|
|
|
data = r.text
|
|
|
|
r.close
|
|
|
|
soup = BeautifulSoup(data, 'html.parser')
|
2023-07-17 00:07:28 +00:00
|
|
|
fml = soup.select_one("article > a.block").string.strip().replace("\\", "").rstrip(" FML")
|
2018-09-01 19:16:07 +00:00
|
|
|
del soup
|
|
|
|
return fml
|
|
|
|
|