Most voted "urllib" questions
10 questions
Sort by count of
-
3
votes2
answers838
viewsHow to check if server is available before request.urlopen in Python?
I have the following HTTP request code on my server in my python code: import urllib.request import json url= urllib.request.urlopen('http://ENDERECOIP/pasta/arquivo.php') x= url.read() y =…
-
2
votes2
answers580
viewsHow to collect data in web Crapping in Python?
Within of this URL, has several links , I have to take the links for the month of June 2017, download them and create a dataframe with all the files in one. But I stopped here at this part, how can…
-
2
votes3
answers128
viewsHow to browse a JSON within another JSON in Python?
I wonder how I can walk a JSON within another JSON in Python. In this case, I have a file that is on the following link: https://sisu-api-pcr.apps.mec.gov.br/api/v1/oferta/instituicao/570 And I’m…
-
2
votes1
answer58
viewsWhat is the difference between utils::Urlencode() output in R and urllib.parse.quote() in Python
I wanted to understand the difference between utils::URLencode() in the R and the urllib.parse.quote() in Python, for example: In R: tster <-…
-
1
votes0
answers55
viewsssl errors in urllib3
i created a keygen for hack the box (nothing illegal here, just automation), but in trying to run the code on macos I received the following error: Traceback (most recent call last): File…
-
0
votes1
answer459
viewsError while using urllib library
I’m trying to make a simple application Hello World taking a look at documentation with the library urllib with the aim of picking up content from a specific website. I will refine the content I…
-
0
votes0
answers22
viewsIs it possible to establish a download directory with urllib.request.urlretrieve?
I am trying to set a default download forwarding directory after using urllib.request.urlretrieve, to avoid having to move the file with and shutil. Does anyone know if it’s possible and how to do?…
-
0
votes0
answers115
viewsChunkedencodingerror when making requests in python
Good afternoon guys. I’m having a problem with requests for data scraping. The main function is the one that follows: def raspa_dados(lista_de_links, ministerio): links = [] autores = [] chamadas =…
-
0
votes1
answer180
viewsurllib.error.Httperror: HTTP Error 404: Not Found
I have the following code, simple. from urllib.request import urlopen from bs4 import BeautifulSoup word_site =…
-
-1
votes1
answer156
viewsHow to find a value between two tags in an HTML text? Other than "XPATH"
I’m trying to extract the value between two HTML tags with Python, I need it between two tags same. I was doing it this way to extract values from a store catalog. But now I have a need to extract…