From 5fe291c8794ddbce6c108c4af80afe333eb2b0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDilvinas?= <159907476+ZilvinasSP@users.noreply.github.com> Date: Tue, 28 May 2024 11:29:03 +0300 Subject: [PATCH] Add files via upload --- amazon.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 amazon.py diff --git a/amazon.py b/amazon.py new file mode 100644 index 0000000..704ad5c --- /dev/null +++ b/amazon.py @@ -0,0 +1,19 @@ +import requests + +url = "https://scraper-api.smartproxy.com/v2/scrape" + +payload = { + "target": "amazon", + "url": "https://www.amazon.com/dp/B08JD3Z1BP/", + "parse": True, +} + +headers = { + "accept": "application/json", + "content-type": "application/json", + "authorization": "Your basic authentication token" +} + +response = requests.post(url, json=payload, headers=headers) + +print(response.text) \ No newline at end of file