Tag: post
-
Keep getting Error 403 while trying to scrape GraphQL with Python
0 I’m trying to scrape a website that uses GraphQL using requests. For that, I copied the link as cURL and used the value the create my payload, but I keep getting the following error. requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.vrbo.com/graphql If it helps, here is the cURL value : curl "https://www.vrbo.com/graphql" –compressed…
-
Python GraphQL query with datetime variables
0 I’m trying to make a post request to a GraphQL API using Python3 and would like some parts of the query to be variables, without doing strange string manipulations with pasting. A good solution was something like this: import requests body = """ query ($first: Int, $occurredAtMin: DateTime){ app(id: "abc123") { events( first: $first…