fixed env
This commit is contained in:
@@ -22,6 +22,8 @@ XML_BEGIN_LAST = """<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xm
|
|||||||
|
|
||||||
XML_END = """</channel></rss>"""
|
XML_END = """</channel></rss>"""
|
||||||
|
|
||||||
|
copyparty_token = os.getenv('COPYPARTY_TOKEN')
|
||||||
|
|
||||||
def make_torrent_entry(name, timestamp, category):
|
def make_torrent_entry(name, timestamp, category):
|
||||||
if category:
|
if category:
|
||||||
category = "DODI Repack"
|
category = "DODI Repack"
|
||||||
@@ -52,8 +54,7 @@ def create_48h_latest(df):
|
|||||||
write_file("RSS/latest_48/index", XML_BEGIN_LAST+last_48_xml+XML_END)
|
write_file("RSS/latest_48/index", XML_BEGIN_LAST+last_48_xml+XML_END)
|
||||||
|
|
||||||
def create_df():
|
def create_df():
|
||||||
torfiles_scrape = requests.get("https://upload.fieryeagle.org/torfiles", auth=("",os.getenv("copyparty")))
|
torfiles_scrape = requests.get("https://upload.fieryeagle.org/torfiles", auth=("",copyparty_token))
|
||||||
|
|
||||||
soup = BeautifulSoup(torfiles_scrape.content, "html.parser")
|
soup = BeautifulSoup(torfiles_scrape.content, "html.parser")
|
||||||
torrent_files_names = [i.find_all("td")[1].text for i in soup.find_all("tbody")[0].find_all("tr")]
|
torrent_files_names = [i.find_all("td")[1].text for i in soup.find_all("tbody")[0].find_all("tr")]
|
||||||
torrent_files_timestamps = [i.find_all("td")[7].text for i in soup.find_all("tbody")[0].find_all("tr")]
|
torrent_files_timestamps = [i.find_all("td")[7].text for i in soup.find_all("tbody")[0].find_all("tr")]
|
||||||
|
|||||||
Reference in New Issue
Block a user