Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

python-requests

Using python Requests with javascript pages

August 20, 2022 by Magenaut

I am trying to use the Requests framework with python (http://docs.python-requests.org/en/latest/) but the page I am trying to get to uses javascript to fetch the info that I want.

Categories Python, Q&A Tags python, python-requests, web-scraping Leave a comment

Python Requests and persistent sessions

August 20, 2022 by Magenaut

I am using the requests module.
I have figured out how to submit data to a login form on a website and retrieve the session key, but I can’t see an obvious way to use this session key in subsequent requests.
Can someone fill in the ellipsis in the code below or suggest another approach?

Categories Python, Q&A Tags python, python-requests Leave a comment

Python requests. 403 Forbidden

August 20, 2022 by Magenaut

I needed to parse a site, but i got an error 403 Forbidden.
Here is a code:

Categories Python, Q&A Tags python, python-requests Leave a comment

Python requests – print entire http request (raw)?

August 19, 2022 by Magenaut

While using the requests module, is there any way to print the raw HTTP request?

Categories Python, Q&A Tags http, python, python-requests Leave a comment

MaxRetryError: HTTPConnectionPool: Max retries exceeded (Caused by ProtocolError(‘Connection aborted.’, error(111, ‘Connection refused’)))

August 19, 2022 by Magenaut

I have one question:I want to test “select” and “input”.can I write it like the code below:
original code:

Categories Python, Q&A Tags python, python-requests, selenium, selenium-webdriver, urllib3 Leave a comment

How could I use requests in asyncio?

August 19, 2022 by Magenaut

I want to do parallel http request tasks in asyncio, but I find that python-requests would block the event loop of asyncio. I’ve found aiohttp but it couldn’t provide the service of http request using a http proxy.

Categories Python, Q&A Tags aiohttp, python, python-3.4, python-requests Leave a comment

How do I disable the security certificate check in Python requests

August 19, 2022 by Magenaut

I am using

Categories Python, Q&A Tags https, python, python-requests Leave a comment

Can I set max_retries for requests.request?

August 19, 2022 by Magenaut

The Python requests module is simple and elegant but one thing bugs me.
It is possible to get a requests.exception.ConnectionError with a message like:

Categories Python, Q&A Tags python, python-requests Leave a comment

How do I disable log messages from the Requests library?

August 19, 2022 by Magenaut

By default, the Requests python library writes log messages to the console, along the lines of:

Categories Python, Q&A Tags logging, python, python-requests, verbosity Leave a comment

Log all requests from the python-requests module

August 18, 2022 by Magenaut

I am using python Requests. I need to debug some OAuth activity, and for that I would like it to log all requests being performed. I could get this information with ngrep, but unfortunately it is not possible to grep https connections (which are needed for OAuth)

Categories Python, Q&A Tags logging, python, python-requests Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page8 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress