Update app.py
Browse files
app.py
CHANGED
|
@@ -22,17 +22,17 @@ with st.expander("Direct Link"):
|
|
| 22 |
pdf_links = [loc_link]
|
| 23 |
print(pdf_links)
|
| 24 |
|
| 25 |
-
with st.expander("US. Reports Case Pull"):
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
|
| 37 |
|
| 38 |
|
|
|
|
| 22 |
pdf_links = [loc_link]
|
| 23 |
print(pdf_links)
|
| 24 |
|
| 25 |
+
# with st.expander("US. Reports Case Pull"):
|
| 26 |
+
# volume = st.slider('Volume', 500, 550, 525)
|
| 27 |
+
# r = requests.get('https://www.loc.gov/collections/united-states-reports/?fa=partof%3Au.s.+reports%3A+volume+'+str(volume) +'&st=list&c=250')
|
| 28 |
+
# soup = BeautifulSoup(r.text)
|
| 29 |
+
# html_links = soup.findAll('link',attrs={'rel': 'alternate'})
|
| 30 |
+
# pdf_links = []
|
| 31 |
+
# for hl in html_links:
|
| 32 |
+
# if len(hl['href'].split('/')[-1].split('.gif')[0])== 11:
|
| 33 |
+
# pdf_links.append(hl['href'].split('.gif')[0]+'.pdf')
|
| 34 |
+
# case_num = st.slider('Case Number', 0, len(pdf_links), 1, step=1)
|
| 35 |
+
# print(pdf_links)
|
| 36 |
|
| 37 |
|
| 38 |
|