Skip to content

Commit ade0e69

Browse files
authored
changed AGENTS to Agents
1 parent faca034 commit ade0e69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Web scraping.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -372,21 +372,21 @@
372372
},
373373
{
374374
"cell_type": "code",
375-
"execution_count": 33,
375+
"execution_count": 71,
376376
"metadata": {},
377377
"outputs": [
378378
{
379379
"name": "stdout",
380380
"output_type": "stream",
381381
"text": [
382382
"200\n",
383-
"{'User-Agent': 'Nokia5310XpressMusic_CMCC/2.0 (10.10) Profile/MIDP-2.1 Configuration/CLDC-1.1 UCWEB/2.0 (Java; U; MIDP-2.0; en-US; Nokia5310XpressMusic) U2/1.0.0 UCBrowser/9.5.0.449 U2/1.0.0 Mobile', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}\n"
383+
"{'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}\n"
384384
]
385385
}
386386
],
387387
"source": [
388388
"Agents = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36'\n",
389-
"r2 = requests.get(\"https://www.amazon.in/Nike-Runallday-P-Platinum-C-Grey-Running-898464-018/dp/B07HBCRFL1/ref=sr_1_10?dchild=1&keywords=jogging+shoes+for+men+nike&qid=1607181938&sr=8-10\",headers={'User-Agent': AGENTS})\n",
389+
"r2 = requests.get(\"https://www.amazon.in/Nike-Runallday-P-Platinum-C-Grey-Running-898464-018/dp/B07HBCRFL1/ref=sr_1_10?dchild=1&keywords=jogging+shoes+for+men+nike&qid=1607181938&sr=8-10\",headers={'User-Agent': Agents})\n",
390390
"print(r2.status_code)\n",
391391
"print(r2.request.headers)"
392392
]

0 commit comments

Comments
 (0)