Skip to content

Instantly share code, notes, and snippets.

@cmabastar
Created May 26, 2022 02:01
Show Gist options
  • Save cmabastar/1c0df9a9829e2d4fe9a2c47f87a26071 to your computer and use it in GitHub Desktop.
Save cmabastar/1c0df9a9829e2d4fe9a2c47f87a26071 to your computer and use it in GitHub Desktop.
g2 logs
127.0.0.1 - - [2022-05-26 09:51:10] "GET /api/g2/search?num_result=250&qs=vicks&freq_count=5&gpt3_calls=3&debug=false HTTP/1.1" 200 142 6.403518
2[2022-05-26 09:51:24 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:24 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:24 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:26 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=1101 response_code=200
[2022-05-26 09:51:26 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=1395 response_code=200
[2022-05-26 09:51:26 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=1400 response_code=200
[2022-05-26 09:51:26 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:29 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=2638 response_code=200
[2022-05-26 09:51:29 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:31 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=1531 response_code=200
[2022-05-26 09:51:31 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:33 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=1259 response_code=200
[2022-05-26 09:51:33 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:35 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=1299 response_code=200
[2022-05-26 09:51:35 +0800] [77761] [INFO] message='Request to OpenAI API' method=post path=https://api.openai.com/v1/engines/text-davinci-002/completions
[2022-05-26 09:51:36 +0800] [77761] [INFO] message='OpenAI API response' path=https://api.openai.com/v1/engines/text-davinci-002/completions processing_ms=684 response_code=200
[2022-05-26 09:51:36 +0800] [77761] [INFO] Elapsed time Gpt3 lookup : 12.4292 seconds
[2022-05-26 09:51:36 +0800] [77761] [INFO] Querying new keywords missing={'vaporizing ointment', 'sore throat spray', 'vicks sinex', 'vicks vaporub ointment', 'vicks dayquil cough', 'vicks dayquil severe', 'vicks on feet', 'vicks vapocool', 'vicks steam inhaler', 'vicks for sore muscles'}
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vaporizing ointment'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='sore throat spray'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks steam inhaler'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks dayquil cough'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks sinex'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks on feet'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks vaporub ointment'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks for sore muscles'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks dayquil severe'
Querying url='https://api.dataforseo.com/v3/serp/google/organic/live/advanced' keyword='vicks vapocool'
[2022-05-26 09:51:52 +0800] [77761] [INFO] Elapsed time Group Frequency : 15.5746 seconds
[2022-05-26 09:51:52 +0800] [77761] [INFO] Querying new keywords missing=set()
[2022-05-26 09:51:52 +0800] [77761] [INFO] Elapsed time Group Frequency after overlap : 0.0367 seconds
[2022-05-26 09:51:52 +0800] [77761] [INFO] Frequency freq={'vicks': 15, 'cold': 13, 'cough': 13, 'relief': 13, 'congestion': 10, 'flu': 10, 'throat': 10, 'menthol': 9, 'rub': 8, 'chest': 8, 'symptoms': 8, 'ointment': 7, 'medicine': 7, 'ingredients': 7, 'sore': 7, 'vaporub': 6, 'nasal': 6, 'topical': 6, 'colds': 6, 'camphor': 6, 'nose': 6, 'contains': 6, 'soothing': 6, 'side': 5, 'effects': 5, 'coughs': 5, 'eucalyptus': 5, 'oil': 5, 'relieves': 5, 'active': 5, 'relieve': 5, 'groceries': 5, 'old': 5, 'feet': 5, 'provides': 5, 'pain': 4, 'aches': 4, 'children': 4, 'helps': 4, 'blocked': 4, 'effective': 4, 'remedy': 4, 'ml': 4, 'boots': 4, 'vapors': 4, 'sinus': 4, 'skin': 4, 'medicated': 4, 'hours': 3, 'night': 3, 'suppressant': 3, 'body': 3, 'thanks': 3, 'benefits': 3, 'calm': 3, 'jar': 3, 'drugs': 3, 'spray': 3, 'vapocool': 3, 'designed': 3, 'comfort': 3, 'baby': 3, 'aromatic': 3, 'non': 3, 'vapor': 3, 'due': 3, 'muscles': 3, 'severe': 3, 'nyquil': 3}
[2022-05-26 09:51:54 +0800] [77761] [INFO] Elapsed time Rough Pass, DB Query : 2.5842 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment