Spaces:
Sleeping
Sleeping
H4CK3R-5M4CK3R
commited on
Commit
·
8fbf770
1
Parent(s):
da93f3f
Added auto notification and removed multiple address
Browse files
LOGS.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
18-16-51.646819/26-7-2024
|
2 |
+
------------------------------------------------------------------
|
3 |
+
|
4 |
+
18-16-51.648099/26-7-2024 -> Total links found 1
|
5 |
+
18-16-51.650375/26-7-2024 -> Getting data for link https://www.degruyter.com/journal/key/fca/24/5/html
|
6 |
+
18-17-53.800210/26-7-2024 -> Total links found 1
|
7 |
+
18-17-53.802712/26-7-2024 -> Getting data for link https://www.degruyter.com/journal/key/fca/24/5/html
|
8 |
+
18-19-12.737504/26-7-2024 -> Total links found 1
|
9 |
+
18-19-12.741695/26-7-2024 -> Getting data for link https://www.degruyter.com/journal/key/fca/24/5/html
|
10 |
+
18-19-40.666101/26-7-2024 -> Total links found 1
|
11 |
+
18-19-40.667129/26-7-2024 -> Getting data for link https://www.degruyter.com/journal/key/fca/24/5/html
|
aiimsscrapper.py
CHANGED
@@ -50,6 +50,7 @@ def get_author_details(url: str):
|
|
50 |
address = f"{address} & {authors_about[a]}"
|
51 |
else:
|
52 |
address = authors_about[a]
|
|
|
53 |
except:
|
54 |
author_name = author.find("a", {"type" : "authors.authorNameEn"}).text.strip()
|
55 |
mail = author.find("a", {"class" : "com-mail"}).get("title").split(":", 1)[1].strip()
|
|
|
50 |
address = f"{address} & {authors_about[a]}"
|
51 |
else:
|
52 |
address = authors_about[a]
|
53 |
+
break
|
54 |
except:
|
55 |
author_name = author.find("a", {"type" : "authors.authorNameEn"}).text.strip()
|
56 |
mail = author.find("a", {"class" : "com-mail"}).get("title").split(":", 1)[1].strip()
|
app.py
CHANGED
@@ -223,12 +223,12 @@ def filterUrlandRun(url: str, from_range: int, to_range: int, reverse: bool, out
|
|
223 |
def handle_url(url, From_volume: int, To_Volume: int, Output: str, Reverse: bool):
|
224 |
output = filterUrlandRun(url, From_volume, To_Volume, Reverse, Output)
|
225 |
# threading.Thread(target=play_sound).start()
|
226 |
-
return output
|
227 |
|
228 |
interface = gr.Interface(
|
229 |
fn=handle_url,
|
230 |
inputs=["textbox", "number", "number", "textbox","checkbox"],
|
231 |
-
outputs="file",
|
232 |
title="Web Scrapper",
|
233 |
description="Enter a URL and download a generated XLSX file."
|
234 |
)
|
|
|
223 |
def handle_url(url, From_volume: int, To_Volume: int, Output: str, Reverse: bool):
|
224 |
output = filterUrlandRun(url, From_volume, To_Volume, Reverse, Output)
|
225 |
# threading.Thread(target=play_sound).start()
|
226 |
+
return output, gr.Audio("notification.mp3", autoplay=True)
|
227 |
|
228 |
interface = gr.Interface(
|
229 |
fn=handle_url,
|
230 |
inputs=["textbox", "number", "number", "textbox","checkbox"],
|
231 |
+
outputs=["file", "audio"],
|
232 |
title="Web Scrapper",
|
233 |
description="Enter a URL and download a generated XLSX file."
|
234 |
)
|
out.xlsx
DELETED
Binary file (105 kB)
|
|