Skip to content

Magenaut

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

python-requests

Python-Requests close http connection

August 17, 2022 by Magenaut

I was wondering, how do you close a connection with Requests (python-requests.org)?

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

python requests.get() returns improperly decoded text instead of UTF-8?

August 17, 2022 by Magenaut

When the content-type of the server is 'Content-Type:text/html', requests.get() returns improperly encoded data.

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

Python: download a file from an FTP server

August 17, 2022 by Magenaut

I’m trying to download some public data files. I screenscrape to get the links to the files, which all look something like this:

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

Passing csrftoken with python Requests

August 16, 2022 by Magenaut

How do you pass a csrftoken with the python module Requests? This is what I have but it’s not working, and I’m not sure which parameter to pass it into (data, headers, auth…)

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

Python requests SSL error – certificate verify failed

August 16, 2022 by Magenaut

This code

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

Upload Image using POST form data in Python-requests

August 16, 2022 by Magenaut

I’m working with wechat APIs …
here I’ve to upload an image to wechat’s server using this API
http://admin.wechat.com/wiki/index.php?title=Transferring_Multimedia_Files

Categories Python, Q&A Tags curl, python, python-3.x, python-requests, wechat Leave a comment

Download and save PDF file with Python requests module

August 16, 2022 by Magenaut

I am trying to download a PDF file from a website and save it to disk. My attempts either fail with encoding errors or result in blank PDFs.

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

python requests.get always get 404

August 15, 2022 by Magenaut

I would like to try send requests.get to this website:

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

Use python requests to download CSV

August 15, 2022 by Magenaut

Here is my code:

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

Python – requests.exceptions.SSLError – dh key too small

August 15, 2022 by Magenaut

I’m scraping some internal pages using Python and requests. I’ve turned off SSL verifications and warnings.

Categories Python, Q&A Tags python, python-requests, ssl Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … 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