fixed copyparty users
This commit is contained in:
@@ -65,7 +65,7 @@ def dayuploads_get(url: str):
|
|||||||
def uploadfile(file_name: str):
|
def uploadfile(file_name: str):
|
||||||
with open(file_name, "rb") as torrent_file:
|
with open(file_name, "rb") as torrent_file:
|
||||||
response = requests.put(f"https://upload.fieryeagle.org/torfiles/{file_name}",
|
response = requests.put(f"https://upload.fieryeagle.org/torfiles/{file_name}",
|
||||||
torrent_file, auth=("admin",copyparty_token))
|
torrent_file, auth=("torbot",copyparty_token))
|
||||||
try:
|
try:
|
||||||
assert response.status_code in range(200, 300)
|
assert response.status_code in range(200, 300)
|
||||||
except AssertionError:
|
except AssertionError:
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ def create_48h_latest(df):
|
|||||||
write_file("RSS/latest_48h.xml", XML_BEGIN_LAST+last_48_xml+XML_END)
|
write_file("RSS/latest_48h.xml", XML_BEGIN_LAST+last_48_xml+XML_END)
|
||||||
|
|
||||||
def create_df():
|
def create_df():
|
||||||
torfiles_scrape = requests.get("https://upload.fieryeagle.org/torfiles", auth=("",copyparty_token))
|
torfiles_scrape = requests.get("https://upload.fieryeagle.org/torfiles", auth=("torbot","uqhuaOk0bDSzPSoPIyJjHVkq"))
|
||||||
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