requests tag

22 questions


1 answers
303 views
0
I want to PUT the csv file in S3 in the requests module.

I am thinking of using Python requests module to PUT the csv file stored in AWS S3 (the file contains Japanese and needs to be converted from utf8 to Shift_jis).Please let me know what kind of code I ...


1 answers
183 views
0
Yahoo Search Scraping Can't Get Only Ads

I'm currently learning scraping at Python 3 and I know it's a gray zone to scrape Yahoo searches when I've tried various sites, but when I tried it (I don't use anything), I couldn't get an ad, so I w...


1 answers
144 views
0
Python scraping doesn't work.

https://ntp.msn.com/edge/ntp?locale=jaMicrosoft Edge ↑ I took the news from this URL and tried to display it, but an error occurred to see if BeautifulSoup was working properly.import requestsfrom bs4...


1 answers
115 views
0
Want to speed up Python programs that retrieve results from APIs

What do you want to solveThis is my first time to write a proper code, but sometimes it takes 5 minutes to execute, and I thought there might be a place where I can do it faster depending on how I wri...

2 years ago

1 answers
136 views
0
bf4 in python gets an error while scraping

I made a crawler with Python, but sometimes I get errors when I crawl and get the title of the web page.However, I don't know which page in the crawl gets the error, so I don't know the cause.There ar...


1 answers
128 views
0
When scraping the web with the requests module, is it meaningful to manipulate the header?

I want to send and receive data through Python's requests module.If you use the request module, it is revealed that it is a scripted connection to a user-agent or a header like this, but if you arbitr...


2 answers
88 views
0
Python requests file POST error (encoding??)

You are about to send a POST request to https://api.telegram.org/bot~~~/sendaudio to send a file to the Telegram bot.URL = 'https://api.telegram.org/bot<...>/sendaudio'VALUE = {'chat_id': '<....

2 years ago

1 answers
158 views
0
How do I read dynamic data from crawling using python 2.7 requests?

url=https://www.whoscored.com/Players/11119/Show/Lionel-Messires = requests.get(url, headers=headers, proxies=proxies)page_parser = bs4(res.content, html.parser)So we're going to practice bringing Mes...


1 answers
105 views
0
I keep failing to log in with Python requests, so why?

I tried to log in by coding as below, but I keep failing.ㅠ

2 years ago

1 answers
135 views
0
How do I receive a response from the browser after sending a request from the code?

The response that comes back after making a request using requests.post with Python is HTML including JavaScript, so in this case, which library should I use to receive a response from the browser?Sel...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.