Created
December 22, 2021 09:40
-
-
Save kgrz/b92773285ac5f342c87bed554d723df4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl 'https://2.rome.api.flipkart.com/api/4/page/fetch' -X POST \ | |
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:96.0) Gecko/20100101 Firefox/96.0' \ | |
-H 'Accept: */*' \ | |
-H 'Accept-Language: en-US,en;q=0.5' \ | |
-H 'Accept-Encoding: gzip, deflate, br' \ | |
-H 'Content-Type: application/json' \ | |
-H 'X-User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:96.0) Gecko/20100101 Firefox/96.0 FKUA/website/42/website/Desktop' \ | |
-H 'Origin: https://www.flipkart.com' \ | |
-H 'DNT: 1' \ | |
-H 'Sec-Fetch-Dest: empty' \ | |
-H 'Sec-Fetch-Mode: cors' \ | |
-H 'Sec-Fetch-Site: same-site' \ | |
-H 'Referer: https://www.flipkart.com/' \ | |
-H 'Connection: keep-alive' \ | |
-H 'Cookie: T=TI162507063479800895308038518365590007082339978099311695745478481241; SN=VI640CCB7B28104DF89BBCBCD0FF0D6A4E.TOK68F5E64D96CD46E688A047B1E245BA41.1640165716.LI; AMCV_17EB401053DAF4840A490D4C%40AdobeOrg=-227196251%7CMCIDTS%7C18983%7CMCMID%7C64443243743976947039128249183815660490%7CMCAAMLH-1633804413%7C12%7CMCAAMB-1640080532%7C6G1ynYcLPuiQxYZrsz_pkqfLG9yMXBpb2zX5dvJdYQJzPXImdj0y%7CMCOPTOUT-1640172940s%7CNONE%7CMCAID%7CNONE; __pxvid=800c47ec-d9c0-11eb-a3ff-0242ac110003; S=d1t12P2s/Pz8/Pz8PP1oYPzQ1P2Cx9uYk2FfC3vp3vJF8aI/VcH1XGf0GCLePkHSEzVDendKeOk0n6Nk4V27ks8nLMg==; _pxvid=8c929c10-1b74-11ec-aa32-6e616b66774d; AMCVS_17EB401053DAF4840A490D4C%40AdobeOrg=1; pxcts=5d1032f0-580b-11ec-a29c-050c22536a94; s_sq=flipkart-prd%3D%2526pid%253Dwww.flipkart.com%25253Amobiles%25253A%25257Ecs-fq1w158srr%25253Apr%2526pidt%253D1%2526oid%253Dhttps%25253A%25252F%25252Fwww.flipkart.com%25252Frealme-c25-y-metal-grey-64-gb%25252Fp%25252Fitmfa9a55c0fe2ea%25253Fpid%25253DMOBG8SHDGWF9ZQ6K%252526lid%25253DL%2526ot%253DA' --data-raw '{"pageUri":"/search?q=iphone+13+case&otracker=search&otracker1=search&marketplace=FLIPKART&as-show=on&as=off&p[]=facets.fulfilled_by%255B%255D%3DFlipkart%2BAssured","pageContext":{"fetchSeoData":true,"paginatedFetch":false,"pageNumber":1},"requestContext":{"type":"BROWSE_PAGE","ssid":"zb863ir4pw4n2f401640165744981","sqid":"m15lnnnpo4uwu2gw1640165744981"}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment