Requests Alternatives

Similar projects and alternatives to requests

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better requests alternative or higher similarity.

Suggest an alternative to requests

Reviews and mentions

Posts with mentions or reviews of requests. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-07-22.
  • Why is the PSF ignoring its own CoC?
    reddit.com/r/Python | 2021-09-02
    https://github.com/psf/requests/pull/5923 adds back a logo that people find offensive because someone got it tattooed on their body? Doesn't the logo violate the Code of Conduct?
  • 3 Ways to Unit Test REST APIs in Python
    dev.to | 2021-07-22
    To retrieve the weather data, we'll use requests. We can create a function that receives a city name as parameter and returns a json. The json will contain the temperature, weather description, sunset, sunrise time and so on.
  • reader 2.0 released – a Python feed reader library
    reddit.com/r/Python | 2021-07-19
    want to change the way feeds are retrieved by using Requests?
  • How To Write Clean Code in Python
    dev.to | 2021-07-14
    Explore other well-written code bases. If you want some examples of well-written, clean, and Pythonic code, check out the Python requests library.
  • Everything to know about Requests v2.26.0
    dev.to | 2021-07-13
    Requests v2.26.0 is a large release which changes and removes many features and dependencies that you should know about when upgrading.
  • Multiple payloads with one POST request?
    Are you talking about multipart/mixed or some other form of multipart type? If so, look here: https://github.com/psf/requests/issues/1736 the parameter to pass is very confusingly named files. But, it seems to be going in the direction you want.
  • What are some good real-world examples of exceptions in Python? (like what open source projects are a good example of exception usage?)
    Custom exceptions: https://github.com/psf/requests/blob/1466ad713cf84738cd28f1224a7ab4a19e50e361/requests/exceptions.py
  • Is it time to move on from requests?
    reddit.com/r/Python | 2021-06-18
    But that said I found it surprising when an issue came up with one of the tools I use called Airflow which is maintained under the Apache project and therefore has strict legal requirements on their dependency chain. One of requests dependencies did not meet this and therefore blocked many Apache projects so a pull request was made: https://github.com/psf/requests/pull/5797
  • “I Could Rewrite Curl”
    Requests does not support "Expect: 100-continue", and that "can't be fixed", sooo Requests is not an adequate replacement for curl.
  • Scrape Google Ad Results with Python
    dev.to | 2021-05-18
    import requests, lxml, urllib.parse from bs4 import BeautifulSoup # Adding User-agent (default user-agent from requests library is 'python-requests') # https://github.com/psf/requests/blob/589c4547338b592b1fb77c65663d8aa6fbb7e38b/requests/utils.py#L808-L814 headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3538.102 Safari/537.36 Edge/18.19582" } # Search query params = {'q': 'сoffee buy'} # Getting HTML response html = requests.get(f'https://www.google.com/search?q=', headers=headers, params=params).text # Getting HTML code from BeautifulSoup soup = BeautifulSoup(html, 'lxml') # Looking for container that has all necessary data findAll() or find_all() for container in soup.findAll('div', class_='RnJeZd top pla-unit-title'): # Scraping title title = container.text # Creating beginning of the link to join afterwards startOfLink = 'https://www.googleadservices.com/pagead' # Scraping end of the link to join afterwards endOfLink = container.find('a')['href'] # Combining (joining) relative and absolute URL's (adding begining and end link) ad_link = urllib.parse.urljoin(startOfLink, endOfLink) # Printing each title and link on a new line print(f'{title}\n{ad_link}\n') # Output ''' Jot Ultra Coffee Triple | Ultra Concentrated https://www.googleadservices.com/aclk?sa=l&ai=DChcSEwiP0dmfvcbwAhX48OMHHYyRBuoYABABGgJ5bQ&sig=AOD64_0x-PlrWek-JFlDTSo7E9Z7YhUOjg&ctype=5&q=&ved=2ahUKEwjhr9GfvcbwAhXHQs0KHQCbCAUQww96BAgCED4&adurl= MUD\WTR | A Healthier Coffee Alternative, 30 servings https://www.googleadservices.com/aclk?sa=l&ai=DChcSEwiP0dmfvcbwAhX48OMHHYyRBuoYABAJGgJ5bQ&sig=AOD64_3gltZJ6kPrxic5o8yUO5cuJrHXnw&ctype=5&q=&ved=2ahUKEwjhr9GfvcbwAhXHQs0KHQCbCAUQww96BAgCEEg&adurl= Jot Ultra Coffee Double | 2 bottles = 28 cups https://www.googleadservices.com/aclk?sa=l&ai=DChcSEwiP0dmfvcbwAhX48OMHHYyRBuoYABAHGgJ5bQ&sig=AOD64_3hD0JWZSLr8NUgoTW5K0HMzdFvng&ctype=5&q=&ved=2ahUKEwjhr9GfvcbwAhXHQs0KHQCbCAUQww96BAgCEE4&adurl= '''
  • I think I need to change the way I approach problems to have better code structure
    When I look at popular GitHub repositories, it seems more like theres. Each function is extremely small and most of it is like if checks and try blocks to catch errors. For example https://github.com/psf/requests/blob/master/requests/utils.py
  • Do you know any Python projects on Github that are examples of best practices and good architecture?
    The requests library is often mentioned for this purpose: https://github.com/psf/requests
  • Open Source Goes to Mars
    news.ycombinator.com | 2021-04-19
    Happy to see my favourite library Python Requests[1] on the list. Congrats team.

    [1] - https://github.com/psf/requests

  • Building an API with FastAPI
    dev.to | 2021-04-13
    I executed the script 3 times making 20 requests on each execution. Ok now lets replace the synchronous requests library by the asynchronous aiohttp library. Furthermore, we add the async/await keywords on the right positions. Our final code will look like this:
  • [Requests] Passing session objects as an argument
    It's literally that, as you can see in the source code: https://github.com/psf/requests/blob/master/requests/sessions.py#L424

Stats

Basic requests repo stats
25
46,046
7.6
1 day ago

psf/requests is an open source project licensed under Apache License 2.0 which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Find remote Python jobs at our new job board 99remotejobs.com. There are 7 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.