Nymbo commited on
Commit
13f932d
·
verified ·
1 Parent(s): 77a97be

Streamlit 1.64; drop 2023 pin set; request timeout + UA

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +1 -1
  3. requirements.txt +2 -60
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🐣🔍
4
  colorFrom: gray
5
  colorTo: indigo
6
  sdk: streamlit
7
- sdk_version: 1.35.0
8
  app_file: app.py
9
  pinned: false
10
  license: creativeml-openrail-m
 
4
  colorFrom: gray
5
  colorTo: indigo
6
  sdk: streamlit
7
+ sdk_version: 1.64.0
8
  app_file: app.py
9
  pinned: false
10
  license: creativeml-openrail-m
app.py CHANGED
@@ -5,7 +5,7 @@ import re
5
 
6
  def scrape_visible_text_from_url(url):
7
  try:
8
- response = requests.get(url)
9
  response.raise_for_status()
10
  soup = BeautifulSoup(response.content, 'html.parser')
11
 
 
5
 
6
  def scrape_visible_text_from_url(url):
7
  try:
8
+ response = requests.get(url, timeout=20, headers={"User-Agent": "Mozilla/5.0 (compatible; TextScraper/1.0)"})
9
  response.raise_for_status()
10
  soup = BeautifulSoup(response.content, 'html.parser')
11
 
requirements.txt CHANGED
@@ -1,60 +1,2 @@
1
- aiohttp==3.8.5
2
- aiosignal==1.3.1
3
- altair==5.0.1
4
- async-timeout==4.0.2
5
- attrs==23.1.0
6
- beautifulsoup4==4.12.2
7
- blinker==1.6.2
8
- bs4==0.0.1
9
- cachetools==5.3.1
10
- certifi==2023.7.22
11
- charset-normalizer==3.2.0
12
- click==8.1.6
13
- decorator==5.1.1
14
- frozenlist==1.4.0
15
- gitdb==4.0.10
16
- GitPython==3.1.32
17
- idna==3.4
18
- importlib-metadata==6.8.0
19
- Jinja2==3.1.2
20
- jsonschema==4.18.4
21
- jsonschema-specifications==2023.7.1
22
- markdown-it-py==3.0.0
23
- MarkupSafe==2.1.3
24
- mdurl==0.1.2
25
- multidict==6.0.4
26
- numpy==1.25.2
27
- openai==0.27.8
28
- packaging==23.1
29
- pandas==2.0.3
30
- Pillow==9.5.0
31
- protobuf==4.23.4
32
- pyarrow==12.0.1
33
- pydeck==0.8.0
34
- Pygments==2.15.1
35
- Pympler==1.0.1
36
- python-dateutil==2.8.2
37
- python-dotenv==1.0.0
38
- pytz==2023.3
39
- pytz-deprecation-shim==0.1.0.post0
40
- referencing==0.30.0
41
- requests==2.31.0
42
- rich==13.5.2
43
- rpds-py==0.9.2
44
- six==1.16.0
45
- smmap==5.0.0
46
- soupsieve==2.4.1
47
- streamlit==1.25.0
48
- tenacity==8.2.2
49
- toml==0.10.2
50
- toolz==0.12.0
51
- tornado==6.3.2
52
- tqdm==4.65.0
53
- typing_extensions==4.7.1
54
- tzdata==2023.3
55
- tzlocal==4.3.1
56
- urllib3==2.0.4
57
- validators==0.20.0
58
- watchdog==3.0.0
59
- yarl==1.9.2
60
- zipp==3.16.2
 
1
+ requests
2
+ beautifulsoup4