sarim commited on
Commit
b476ae0
·
1 Parent(s): fbd08e4

make api request to url

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,5 +1,12 @@
1
  import streamlit as st
 
 
 
 
 
 
 
2
 
3
  x = st.slider('Select a value')
4
- url_1 = st.text_input(label="Enter research paper url",value="url_1")
5
  st.write(x, 'squared is', x * x)
 
1
  import streamlit as st
2
+ import requests
3
+
4
+
5
+ def scrapWeb():
6
+ r = requests.get("https://sci-hub.se/https://www.nature.com/articles/s41551-021-00760-7")
7
+ print(r)
8
+
9
 
10
  x = st.slider('Select a value')
11
+ url_1 = st.text_input(label="Enter research paper url",key="url_1")
12
  st.write(x, 'squared is', x * x)