Skip to content

Instantly share code, notes, and snippets.

@vtvh
Created February 28, 2024 09:05
Show Gist options
  • Save vtvh/b5eb6e9998e4c7fcf2d9e48fd6a67646 to your computer and use it in GitHub Desktop.
Save vtvh/b5eb6e9998e4c7fcf2d9e48fd6a67646 to your computer and use it in GitHub Desktop.
for ya, Mr.Munir
url='https://www.g2.com/products/campaign-monitor-by-marigold/reviews'
❯ python testEcommerce.py
{'job': {'_links': [{'href': 'http://data.oxylabs.io/v1/queries/7168522648094259201',
'method': 'GET',
'rel': 'self'},
{'href': 'http://data.oxylabs.io/v1/queries/7168522648094259201/results',
'method': 'GET',
'rel': 'results'},
{'href': 'http://data.oxylabs.io/v1/queries/7168522648094259201/results?type=raw',
'method': 'GET',
'rel': 'results-html'},
{'href': 'http://data.oxylabs.io/v1/queries/7168522648094259201/results?type=parsed',
'method': 'GET',
'rel': 'results-parsed'}],
'browser_instructions': None,
'callback_url': 'https://realtime.oxylabs.io:443/api/done',
'client_id': 48311,
'client_notes': None,
'content_encoding': 'utf-8',
'context': [{'key': 'force_headers', 'value': None},
{'key': 'successful_status_codes', 'value': []},
{'key': 'follow_redirects', 'value': None},
{'key': 'cookies', 'value': []},
{'key': 'headers', 'value': []},
{'key': 'session_id', 'value': None},
{'key': 'http_method', 'value': 'get'},
{'key': 'content', 'value': None},
{'key': 'store_id', 'value': None}],
'created_at': '2024-02-28 08:29:44',
'domain': 'com',
'geo_location': 'Vietnam',
'id': '7168522648094259201',
'limit': 10,
'locale': None,
'pages': 1,
'parse': True,
'parser_type': None,
'parsing_instructions': None,
'query': '',
'render': None,
'session_info': None,
'source': 'universal_ecommerce',
'start_page': 1,
'status': 'done',
'statuses': [],
'storage_type': None,
'storage_url': None,
'subdomain': 'www',
'updated_at': '2024-02-28 08:29:49',
'url': 'https://www.walmart.com/ip/Citrucel-Fiber-Therapy-Powder-for-Occasional-Constipation-Relief-Orange-30-oz/893420',
'user_agent_type': 'mobile_ios'},
'results': [{'content': {'breadcrumbs': ['Health and Medicine',
'Vitamins and Supplements',
'Supplements'],
'currency': 'USD',
'description': 'Product details Citrucel with '
'Methylcellulose Fiber is a '
'clinically proven fiber therapy that '
'gently* helps to relieve occasional '
'constipation. With a great-tasting, '
'easy-to-mix orange flavored powder, '
'our classic go-to formula gently '
'helps relieve irregularity.* Now you '
'can get the additional fiber you '
'need to help balance your diet '
'without unwanted gas.** The most '
'important thing about fiber is that '
'it helps regulate your system and '
'relieves constipation. That’s why '
'Citrucel with Methylcellulose Fiber '
'is recommended by physicians.† When '
'it comes to your health, fiber helps '
'with your stool consistency. '
'Citrucel contains 100% soluble fiber '
'powder, which means it will give '
'your stool a softer, bulkier '
"consistency that's easier to pass. "
'And you’ll get all the benefits of '
'fiber, but without excess gas!** '
'Citrucel with Methylcellulose Fiber '
'can take anywhere between 12 and 72 '
'hours to take effect, so make sure '
'to use the product at the first sign '
'of constipation or irregularity. Try '
'Citrucel today for the effective '
'fiber supplement you’ve been looking '
'for. *When used as directed. **Based '
'on laboratory testing. Individual '
'results may vary. †Among therapeutic '
'fiber laxatives. Citrucel contains '
"fiber for irregularity that won't "
'cause excess gas (Based on '
'laboratory testing. Individual '
'results may vary) Clinically proven '
'effective to help relieve occasional '
'constipation (When used as directed) '
'Citrucel powder contains '
'Methylcellulose Fiber, which is a '
'non toxic, non allergenic, and non '
'irritant fiber Great tasting, orange '
'flavored powder that gently helps '
'relieve irregularity (When used as '
'directed) Citrucel is recommended by '
'physicians (Among therapeutic fiber '
'laxatives) HSA and FSA eligible item '
'More details',
'free_delivery': True,
'meta': {'gtin': '300680418301', 'sku': '893420'},
'out_of_stock': False,
'parse_status_code': 12000,
'price': 31,
'rating': {'count': 219, 'rating': 4.7},
'seller': {'catalog_id': '101551765',
'id': 'BE8B6AF40ADB43059F7A43EB75C9A45D',
'name': 'CONN SOLES',
'official_name': 'CONN SOLES LLC',
'url': '/seller/101551765?itemId=893420&pageName=item&returnUrl=%2Fip%2FCitrucel-Fiber-Therapy-Powder-for-Occasional-Constipation-Relief-Orange-30-oz%2F893420'},
'sellers_count': 17,
'specifications': [{'key': 'Features',
'value': 'Generally produces a '
'bowel movement in '
'12-72 hours, '
'Bulk-forming Fiber '
'Laxative'},
{'key': 'Brand',
'value': 'Citrucel'},
{'key': 'Vitamin & Supplement '
'Type',
'value': 'Fiber Supplements'},
{'key': 'Age Group',
'value': 'Adult, Teen'},
{'key': 'Enteral Medication & '
'Supplement Form',
'value': 'Powder'},
{'key': 'Flavor',
'value': 'Orange'},
{'key': 'Nutrient Content Claims',
'value': 'High Fiber'},
{'key': 'Fiber Daily Value '
'Percentage',
'value': '2'},
{'key': 'Assembled Product '
'Dimensions (L x W x H)',
'value': '3.70 x 3.70 x 7.71 '
'Inches'}],
'title': 'Citrucel Fiber Therapy Powder for '
'Occasional Constipation Relief, Orange, 30 '
'oz',
'url': 'https://www.walmart.com/ip/Citrucel-Fiber-Therapy-Powder-for-Occasional-Constipation-Relief-Orange-30-oz/893420',
'warranty': 'Choking: taking this product without '
'adequate fluid may cause it to swell '
'and block your throat or esophagus and '
'may cause choking. Do not take this '
'product if you have difficulty in '
'swallowing. If you experience chest '
'pain, vomiting, or difficulty in '
'swallowing or breathing after taking '
'this product, seek immediate medical '
'attention. Ask a doctor before use if '
'you have a sudden change in bowel '
'habits that persists for two weeks or '
'abdominal pain, nausea or vomiting. '
'Stop use and ask a doctor if '
'constipation lasts more than 7 days or '
'you have rectal bleeding. These could '
'be signs of a serious condition. Keep '
'out of reach of children. In case of '
'overdose, get medical help or contact a '
'Poison Control Center right away.'},
'created_at': '2024-02-28 08:29:44',
'job_id': '7168522648094259201',
'page': 1,
'parser_type': 'walmart_product',
'status_code': 200,
'updated_at': '2024-02-28 08:29:49',
'url': 'https://www.walmart.com/ip/Citrucel-Fiber-Therapy-Powder-for-Occasional-Constipation-Relief-Orange-30-oz/893420'}]}
❯ python testEcommerce.py
{'job': {'_links': [{'href': 'http://data.oxylabs.io/v1/queries/7168530967487843329',
'method': 'GET',
'rel': 'self'},
{'href': 'http://data.oxylabs.io/v1/queries/7168530967487843329/results',
'method': 'GET',
'rel': 'results'},
{'href': 'http://data.oxylabs.io/v1/queries/7168530967487843329/results?type=raw',
'method': 'GET',
'rel': 'results-html'},
{'href': 'http://data.oxylabs.io/v1/queries/7168530967487843329/results?type=parsed',
'method': 'GET',
'rel': 'results-parsed'}],
'browser_instructions': None,
'callback_url': 'https://realtime.oxylabs.io:443/api/done',
'client_id': 48311,
'client_notes': None,
'content_encoding': 'utf-8',
'context': [{'key': 'force_headers', 'value': None},
{'key': 'successful_status_codes', 'value': []},
{'key': 'follow_redirects', 'value': None},
{'key': 'cookies', 'value': []},
{'key': 'headers', 'value': []},
{'key': 'session_id', 'value': None},
{'key': 'http_method', 'value': 'get'},
{'key': 'content', 'value': None},
{'key': 'store_id', 'value': None}],
'created_at': '2024-02-28 09:02:47',
'domain': 'com',
'geo_location': 'Vietnam',
'id': '7168530967487843329',
'limit': 10,
'locale': None,
'pages': 1,
'parse': True,
'parser_type': 'ecommerce_product',
'parsing_instructions': None,
'query': '',
'render': 'mhtml',
'session_info': None,
'source': 'universal_ecommerce',
'start_page': 1,
'status': 'done',
'statuses': [],
'storage_type': None,
'storage_url': None,
'subdomain': 'www',
'updated_at': '2024-02-28 09:03:16',
'url': 'https://www.g2.com/products/campaign-monitor-by-marigold/reviews',
'user_agent_type': 'mobile_ios'},
'results': [{'content': {'parse_status_code': 12002},
'created_at': '2024-02-28 09:02:47',
'job_id': '7168530967487843329',
'page': 1,
'parser_type': 'ecommerce_product',
'status_code': 200,
'updated_at': '2024-02-28 09:03:16',
'url': 'https://www.g2.com/products/campaign-monitor-by-marigold/reviews'}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment