aboutsummaryrefslogtreecommitdiff
path: root/autoAidModules
diff options
context:
space:
mode:
Diffstat (limited to 'autoAidModules')
-rw-r--r--autoAidModules/__init__.py0
-rw-r--r--autoAidModules/sample_res.py1
-rw-r--r--autoAidModules/search_funcs.py76
3 files changed, 77 insertions, 0 deletions
diff --git a/autoAidModules/__init__.py b/autoAidModules/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/autoAidModules/__init__.py
diff --git a/autoAidModules/sample_res.py b/autoAidModules/sample_res.py
new file mode 100644
index 0000000..37129ab
--- /dev/null
+++ b/autoAidModules/sample_res.py
@@ -0,0 +1 @@
+res = {'search_metadata': {'id': '6521d3490a90c736e3a8d0f0', 'status': 'Success', 'json_endpoint': 'https://serpapi.com/searches/3d76974214cdc1ef/6521d3490a90c736e3a8d0f0.json', 'created_at': '2023-10-07 21:53:13 UTC', 'processed_at': '2023-10-07 21:53:13 UTC', 'google_url': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&oq=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&uule=w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM&hl=en&gl=us&sourceid=chrome&ie=UTF-8', 'raw_html_file': 'https://serpapi.com/searches/3d76974214cdc1ef/6521d3490a90c736e3a8d0f0.html', 'total_time_taken': 1.72}, 'search_parameters': {'engine': 'google', 'q': 'Left headlight is flickering on and off on my car bimmerforums.com', 'location_requested': 'Austin, Texas, United States', 'location_used': 'Austin,Texas,United States', 'google_domain': 'google.com', 'hl': 'en', 'gl': 'us', 'device': 'desktop'}, 'search_information': {'query_displayed': 'Left headlight is flickering on and off on my car bimmerforums.com', 'total_results': 13900, 'time_taken_displayed': 0.38, 'menu_items': [{'position': 1, 'title': 'Videos', 'link': 'https://www.google.com/search?sca_esv=571622291&hl=en&gl=us&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&tbm=vid&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQIDhAB', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com'}, {'position': 2, 'title': 'Images', 'link': 'https://www.google.com/search?sca_esv=571622291&hl=en&gl=us&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&tbm=isch&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQIDRAB', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_images&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com'}, {'position': 3, 'title': 'Shopping', 'link': 'https://www.google.com/search?sca_esv=571622291&hl=en&gl=us&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&tbm=shop&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQICxAB', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_shopping&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com'}, {'position': 4, 'title': 'News', 'link': 'https://www.google.com/search?sca_esv=571622291&hl=en&gl=us&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&tbm=nws&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQIDBAB', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&tbm=nws'}, {'position': 5, 'title': 'Books', 'link': 'https://www.google.com/search?sca_esv=571622291&hl=en&gl=us&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&tbm=bks&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQIQBAB'}, {'position': 6, 'title': 'Maps', 'link': 'https://maps.google.com/maps?sca_esv=571622291&hl=en&gl=us&output=search&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&source=lnms&entry=mc&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQIQhAB'}, {'position': 7, 'title': 'Flights', 'link': 'https://www.google.com/travel/flights?sca_esv=571622291&hl=en&gl=us&output=search&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQIQRAB'}, {'position': 8, 'title': 'Finance', 'link': 'https://www.google.com/finance?sca_esv=571622291&hl=en&gl=us&output=search&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Q0pQJegQIQxAB'}, {'position': 9, 'title': 'All', 'link': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&sca_esv=571622291&hl=en&gl=us&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAE', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com'}, {'position': 10, 'title': 'Images', 'link': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&sca_esv=571622291&hl=en&gl=us&tbm=isch&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAG', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_images&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com'}, {'position': 11, 'title': 'Maps', 'link': 'https://maps.google.com/maps?hl=en&gl=us&uule=w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&um=1&ie=UTF-8&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAI'}, {'position': 12, 'title': 'Shopping', 'link': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&sca_esv=571622291&hl=en&gl=us&tbm=shop&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAK', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_shopping&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com'}, {'position': 13, 'title': 'Videos', 'link': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&sca_esv=571622291&hl=en&gl=us&tbm=vid&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAM', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com'}, {'position': 14, 'title': 'News', 'link': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&sca_esv=571622291&hl=en&gl=us&tbm=nws&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAO', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&tbm=nws'}, {'position': 15, 'title': 'Books', 'link': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&sca_esv=571622291&hl=en&gl=us&tbm=bks&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAQ'}, {'position': 16, 'title': 'Flights', 'link': 'https://www.google.com/travel/flights?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&sca_esv=571622291&hl=en&gl=us&tbm=flm&source=lnms&sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAS'}, {'position': 17, 'title': 'Finance', 'link': 'https://www.google.com/finance?sa=X&ved=2ahUKEwjau6yS9uSBAxWTFVkFHW2EDx0Qv_gJegQICRAU'}], 'organic_results_state': 'Results for exact spelling'}, 'related_questions': [{'question': 'Why does my headlight flicker then go off and on?', 'snippet': "One of the most common causes of headlight flickering is a dying battery. Your headlights rely on power from the battery to function properly. If the battery is failing, flickering, or dimming headlights may be the result. In this situation, you'll want to get a free battery inspection from your local Tires Plus.", 'title': '6 Possible Causes for Headlight Flickering - Tires Plus', 'date': 'Jul 9, 2021', 'link': 'https://www.tiresplus.com/blog/maintenance/headlight-flickering-causes/#:~:text=One%20of%20the%20most%20common,from%20your%20local%20Tires%20Plus.', 'displayed_link': 'https://www.tiresplus.com › blog › maintenance › headli...', 'thumbnail': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTyAhBzHsSGX_1G_le5FnlfiU3Uu9vHtdqS2bvtfu8hoQ&s', 'next_page_token': 'eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaHkgZG9lcyBteSBoZWFkbGlnaHQgZmxpY2tlciB0aGVuIGdvIG9mZiBhbmQgb24/IiwibGsiOiJHaWRvWldGa2JHbG5hSFFnWm14cFkydGxjbk1nZEdobGJpQm5iMlZ6SUc5bVppQmhibVFnYjI0IiwiYnMiOiJjLU15NHpJTXo2aFVTTWxQTFZiSXJWVElTRTFNeWNsTXp5aFJTTXZKVE01T0xWSW95VWpOVTBqUFY4aFBTMU5JekV0UnlNLXpsMWd2d21YQlpSeWVrVmdDMFpoWm9wQ2JtcGluVUE1U201LVhpbVJNWmpITXBNeThkSHVKRXp4Y09senFJQnNUaTFKQkZvSlZJYXNCNmdlSk9fbUcyMHRzRS1VeTROSkJVcDJjV0lSZEI5aGxhV24yRXBZQ2pBQSIsImlkIjoiZmNfMSJ9', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_related_questions&google_domain=google.com&next_page_token=eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaHkgZG9lcyBteSBoZWFkbGlnaHQgZmxpY2tlciB0aGVuIGdvIG9mZiBhbmQgb24%2FIiwibGsiOiJHaWRvWldGa2JHbG5hSFFnWm14cFkydGxjbk1nZEdobGJpQm5iMlZ6SUc5bVppQmhibVFnYjI0IiwiYnMiOiJjLU15NHpJTXo2aFVTTWxQTFZiSXJWVElTRTFNeWNsTXp5aFJTTXZKVE01T0xWSW95VWpOVTBqUFY4aFBTMU5JekV0UnlNLXpsMWd2d21YQlpSeWVrVmdDMFpoWm9wQ2JtcGluVUE1U201LVhpbVJNWmpITXBNeThkSHVKRXp4Y09senFJQnNUaTFKQkZvSlZJYXNCNmdlSk9fbUcyMHRzRS1VeTROSkJVcDJjV0lSZEI5aGxhV24yRXBZQ2pBQSIsImlkIjoiZmNfMSJ9'}, {'question': 'What does it mean when one headlight is flickering?', 'snippet': 'The most common reason for flickering lights is a worn-out alternator, however, these are the other possible causes: dying battery. damaged light bulbs. faulty wiring.', 'title': 'Why would a headlight flicker and then go out? - Quora', 'link': 'https://www.quora.com/Why-would-a-headlight-flicker-and-then-go-out#:~:text=The%20most%20common%20reason%20for,faulty%20wiring', 'displayed_link': 'https://www.quora.com › Why-would-a-headlight-flicker...', 'next_page_token': 'eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaGF0IGRvZXMgaXQgbWVhbiB3aGVuIG9uZSBoZWFkbGlnaHQgaXMgZmxpY2tlcmluZz8iLCJsayI6IkdqSjNhR0YwSUdSdlpYTWdhWFFnYldWaGJpQjNhR1Z1SUc5dVpTQm9aV0ZrYkdsbmFIUWdhWE1nWm14cFkydGxjbWx1WnciLCJicyI6ImMtTXk0eklNejZoVVNNbFBMVmJJclZUSVNFMU15Y2xNenloUlNNdkpUTTVPTFZJb3lVak5VMGpQVjhoUFMxTkl6RXRSeU0temwxZ3Z3bVhCWlJ5ZWtWZ0MwWmhab3BDYm1waW5VQTVTbTUtWGltUk1aakhNcE15OGRIdUpFenhjT2x6cUlCc1RpMUpCRm9KVklhc0I2Z2VKT19tRzIwdHNFLVV5NE5KQlVwMmNXSVJkQjlobGFXbjJFcFlDakFBIiwiaWQiOiJmY18xIn0=', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_related_questions&google_domain=google.com&next_page_token=eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaGF0IGRvZXMgaXQgbWVhbiB3aGVuIG9uZSBoZWFkbGlnaHQgaXMgZmxpY2tlcmluZz8iLCJsayI6IkdqSjNhR0YwSUdSdlpYTWdhWFFnYldWaGJpQjNhR1Z1SUc5dVpTQm9aV0ZrYkdsbmFIUWdhWE1nWm14cFkydGxjbWx1WnciLCJicyI6ImMtTXk0eklNejZoVVNNbFBMVmJJclZUSVNFMU15Y2xNenloUlNNdkpUTTVPTFZJb3lVak5VMGpQVjhoUFMxTkl6RXRSeU0temwxZ3Z3bVhCWlJ5ZWtWZ0MwWmhab3BDYm1waW5VQTVTbTUtWGltUk1aakhNcE15OGRIdUpFenhjT2x6cUlCc1RpMUpCRm9KVklhc0I2Z2VKT19tRzIwdHNFLVV5NE5KQlVwMmNXSVJkQjlobGFXbjJFcFlDakFBIiwiaWQiOiJmY18xIn0%3D'}, {'question': 'Why are my lights flickering on my BMW?', 'snippet': "Bad bulbs or fuses If your car battery isn't the reason for your flickering car lights, it could be a bad light bulb. Failing light bulbs are an easy fix and present an opportunity to upgrade to new LED bulbs. If it is a bad fuse, you may be looking at a larger problem than you had originally thought.", 'title': 'What Does It Mean When Vehicle Lights Are Flickering? - Sandia BMW', 'link': 'https://www.sandiabmw.com/what-does-it-mean-when-vehicle-lights-are-flickering/#:~:text=Bad%20bulbs%20or%20fuses,than%20you%20had%20originally%20thought.', 'displayed_link': 'https://www.sandiabmw.com › what-does-it-mean-when-...', 'thumbnail': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/ac7dcd0dacbf238b4568bfdd6d44c9b9480bd63efcd3d4c297428c350c3c0331.png', 'next_page_token': 'eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaHkgYXJlIG15IGxpZ2h0cyBmbGlja2VyaW5nIG9uIG15IEJNVz8iLCJsayI6IkdpWjNhSGtnWVhKbElHMTVJR3hwWjJoMGN5Qm1iR2xqYTJWeWFXNW5JRzl1SUcxNUlHSnRkdyIsImJzIjoiYy1NeTR6SU16NmhVU01sUExWYklyVlRJU0UxTXljbE16eWhSU012SlRNNU9MVklveVVqTlUwalBWOGhQUzFOSXpFdFJ5TS16bDFndndtWEJaUnlla1ZnQzBaaFpvcENibXBpblVBNVNtNS1YaW1STVpqSE1wTXk4ZEh1SkV6eGNPbHpxSUJzVGkxSkJGb0pWSWFzQjZnZUpPX21HMjB0c0UtVXk0TkpCVXAyY1dJUmRCOWhsYVduMkVwWUNqQUEiLCJpZCI6ImZjXzEifQ==', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_related_questions&google_domain=google.com&next_page_token=eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaHkgYXJlIG15IGxpZ2h0cyBmbGlja2VyaW5nIG9uIG15IEJNVz8iLCJsayI6IkdpWjNhSGtnWVhKbElHMTVJR3hwWjJoMGN5Qm1iR2xqYTJWeWFXNW5JRzl1SUcxNUlHSnRkdyIsImJzIjoiYy1NeTR6SU16NmhVU01sUExWYklyVlRJU0UxTXljbE16eWhSU012SlRNNU9MVklveVVqTlUwalBWOGhQUzFOSXpFdFJ5TS16bDFndndtWEJaUnlla1ZnQzBaaFpvcENibXBpblVBNVNtNS1YaW1STVpqSE1wTXk4ZEh1SkV6eGNPbHpxSUJzVGkxSkJGb0pWSWFzQjZnZUpPX21HMjB0c0UtVXk0TkpCVXAyY1dJUmRCOWhsYVduMkVwWUNqQUEiLCJpZCI6ImZjXzEifQ%3D%3D'}, {'question': 'Why are my car lights flickering on and off?', 'snippet': "If you observe your car lights flickering while driving, it's likely due to a battery that's failing. In the case when it's not the battery, there are other trouble areas that may be causing the issue. No matter the cause, you should have the problem diagnosed and repaired as quickly as possible.", 'title': 'What Is Making The Lights On My Car Flicker? - Bob Howard Honda', 'link': 'https://www.bobhowardhonda.com/what-is-making-the-lights-on-my-car-flicker/#:~:text=If%20you%20observe%20your%20car,repaired%20as%20quickly%20as%20possible.', 'displayed_link': 'https://www.bobhowardhonda.com › what-is-making-the...', 'thumbnail': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/ac7dcd0dacbf238b4568bfdd6d44c9b9bb0c0eef88a0eaaa39ead764d5d4b32b.png', 'next_page_token': 'eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaHkgYXJlIG15IGNhciBsaWdodHMgZmxpY2tlcmluZyBvbiBhbmQgb2ZmPyIsImxrIjoiR2lCallYSWdiR2xuYUhSeklHWnNhV05yWlhKcGJtY2diMjRnWVc1a0lHOW1aZyIsImJzIjoiYy1NeTR6SU16NmhVU01sUExWYklyVlRJU0UxTXljbE16eWhSU012SlRNNU9MVklveVVqTlUwalBWOGhQUzFOSXpFdFJ5TS16bDFndndtWEJaUnlla1ZnQzBaaFpvcENibXBpblVBNVNtNS1YaW1STVpqSE1wTXk4ZEh1SkV6eGNPbHpxSUJzVGkxSkJGb0pWSWFzQjZnZUpPX21HMjB0c0UtVXk0TkpCVXAyY1dJUmRCOWhsYVduMkVwWUNqQUEiLCJpZCI6ImZjXzEifQ==', 'serpapi_link': 'https://serpapi.com/search.json?device=desktop&engine=google_related_questions&google_domain=google.com&next_page_token=eyJvbnMiOiIxMDA0MSIsImZjIjoiRW9zQkNreEJURTl1Y0ZsVmJWcENjemhxT1ZwVFgxOXRkRVpxTWtKalpXaHRSREZOZFVKVmRYaHVSMVYyVmpOdVNXMU1NRVEwVFdWa1NISTVXR2R4U21OQ1RXdE1jVGhyV0haTVVVczROWEl6RWhkVGRFMW9XbVJ5ZFVoS1QzSTFUbTlRTjFscExUWkJSUm9pUVVwM2F5MDRaUzFwVmxwaVpVUmpOVWhRWVdSVFMwWlNhbXB4TWpsSWVXZHRadyIsImZjdiI6IjMiLCJlaSI6IlN0TWhaZHJ1SEpPcjVOb1A3WWktNkFFIiwicWMiOiJDa0pzWldaMElHaGxZV1JzYVdkb2RDQnBjeUJtYkdsamEyVnlhVzVuSUc5dUlHRnVaQ0J2Wm1ZZ2IyNGdiWGtnWTJGeUlHSnBiVzFsY21admNuVnRjeUJqYjIwUUFIM2VtZWctIiwicXVlc3Rpb24iOiJXaHkgYXJlIG15IGNhciBsaWdodHMgZmxpY2tlcmluZyBvbiBhbmQgb2ZmPyIsImxrIjoiR2lCallYSWdiR2xuYUhSeklHWnNhV05yWlhKcGJtY2diMjRnWVc1a0lHOW1aZyIsImJzIjoiYy1NeTR6SU16NmhVU01sUExWYklyVlRJU0UxTXljbE16eWhSU012SlRNNU9MVklveVVqTlUwalBWOGhQUzFOSXpFdFJ5TS16bDFndndtWEJaUnlla1ZnQzBaaFpvcENibXBpblVBNVNtNS1YaW1STVpqSE1wTXk4ZEh1SkV6eGNPbHpxSUJzVGkxSkJGb0pWSWFzQjZnZUpPX21HMjB0c0UtVXk0TkpCVXAyY1dJUmRCOWhsYVduMkVwWUNqQUEiLCJpZCI6ImZjXzEifQ%3D%3D'}], 'organic_results': [{'position': 1, 'title': '325i headlights flash randomly all the time', 'link': 'https://www.bimmerforums.com/forum/showthread.php?1187852-325i-headlights-flash-randomly-all-the-time', 'displayed_link': 'https://www.bimmerforums.com › forum › showthread', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c66da69f0c4655b5406ce699c161092657.png', 'date': 'Mar 6, 2009', 'snippet': 'Good luck. Rear bulb sockets are melted and are floating ground and flashing headlights. Clean up the taillights and the headlights will behave.', 'snippet_highlighted_words': ['flashing headlights', 'the', 'the headlights'], 'sitelinks': {'list': [{'title': 'Headlights flicker and die after replacing LCM', 'link': 'https://www.bimmerforums.com/forum/showthread.php?2462830-Headlights-flicker-and-die-after-replacing-LCM', 'date': 'Apr 4, 2022'}, {'title': 'HID flickering/shutting off - Bimmerforums.com', 'link': 'https://www.bimmerforums.com/forum/showthread.php?2473244-HID-flickering-shutting-off', 'date': 'Mar 2, 2023'}, {'title': 'The Flickering Xenon Headlights.... - Bimmerforums.com', 'link': 'https://www.bimmerforums.com/forum/showthread.php?1304896-The-Flickering-Xenon-Headlights/page2', 'date': 'Nov 12, 2011'}, {'title': 'Low beam flicker. - Bimmerforums - The Ultimate BMW Forum', 'link': 'https://www.bimmerforums.com/forum/showthread.php?2313392-Low-beam-flicker', 'date': 'Sep 12, 2016'}]}, 'about_page_link': 'https://www.google.com/search?q=About+https://www.bimmerforums.com/forum/showthread.php?1187852-325i-headlights-flash-randomly-all-the-time&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.bimmerforums.com%2Fforum%2Fshowthread.php%3F1187852-325i-headlights-flash-randomly-all-the-time', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:9tHJMmEM2j8J:https://www.bimmerforums.com/forum/showthread.php%3F1187852-325i-headlights-flash-randomly-all-the-time&cd=9&hl=en&ct=clnk&gl=us', 'related_pages_link': 'https://www.google.com/search?sca_esv=571622291&hl=en&gl=us&q=related:https://www.bimmerforums.com/forum/showthread.php%3F1187852-325i-headlights-flash-randomly-all-the-time+Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com', 'source': 'Bimmerforums.com'}, {'position': 2, 'title': 'Headlights and brake Lights Flickering when Brake applied', 'link': 'https://www.bimmerforums.co.uk/threads/headlights-and-brake-lights-flickering-when-brake-applied.124945/', 'displayed_link': 'https://www.bimmerforums.co.uk › threads › headlig...', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c68d2044343e24aabff7ab3b9715430972.png', 'date': 'Dec 24, 2012', 'snippet': 'Any help greatly appreciated. Brake lights: As I mentioned the flickering problem goes away when the outermost bulb on the left is removed, so I ...', 'snippet_highlighted_words': ['lights', 'the flickering', 'the', 'the left'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.bimmerforums.co.uk/threads/headlights-and-brake-lights-flickering-when-brake-applied.124945/&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.bimmerforums.co.uk%2Fthreads%2Fheadlights-and-brake-lights-flickering-when-brake-applied.124945%2F', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:XK9hVi8VmSwJ:https://www.bimmerforums.co.uk/threads/headlights-and-brake-lights-flickering-when-brake-applied.124945/&cd=19&hl=en&ct=clnk&gl=us', 'source': 'bimmerforums.co.uk'}, {'position': 3, 'title': '2001 e46 320d - headlights flicker when starting | BMW Forums', 'link': 'https://www.bimmerforums.co.uk/threads/2001-e46-320d-headlights-flicker-when-starting.78185/post-666038', 'displayed_link': 'https://www.bimmerforums.co.uk › post-666038', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c619f9e164d428794c142070bba5e705ff.png', 'date': 'Apr 10, 2011', 'snippet': 'I left my e60 530d running to warm up the other morning with the head lights off and I swear they flicked on and off, like a quick blink a few ...', 'snippet_highlighted_words': ['left my', 'the', 'the', 'lights off', 'off', 'blink'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.bimmerforums.co.uk/threads/2001-e46-320d-headlights-flicker-when-starting.78185/post-666038&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.bimmerforums.co.uk%2Fthreads%2F2001-e46-320d-headlights-flicker-when-starting.78185%2Fpost-666038', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:p4wbXbNW0I8J:https://www.bimmerforums.co.uk/threads/2001-e46-320d-headlights-flicker-when-starting.78185/post-666038&cd=20&hl=en&ct=clnk&gl=us', 'source': 'bimmerforums.co.uk'}, {'position': 4, 'title': 'Please help! Headlight keeps flicking then shuts off - BMW ...', 'link': 'https://www.e90post.com/forums/showthread.php?t=772188', 'displayed_link': 'https://www.e90post.com › forums › showthread', 'snippet': "So my driver side headlight seems to shut off while I'm driving. First it'll flicker, then a couple seconds/mins later it would shut off. The angel eyes and ...", 'snippet_highlighted_words': ['my driver side headlight', 'off', 'flicker', 'off', 'The'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.e90post.com/forums/showthread.php?t=772188&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.e90post.com%2Fforums%2Fshowthread.php%3Ft%3D772188', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:b3iy7pCifDMJ:https://www.e90post.com/forums/showthread.php%3Ft%3D772188&cd=21&hl=en&ct=clnk&gl=us', 'source': 'BIMMERPOST.com'}, {'position': 5, 'title': 'Headlights Blink at Startup and Flicker while Driving', 'link': 'https://www.e90post.com/forums/showthread.php?t=1986319', 'displayed_link': 'https://www.e90post.com › forums › showthread', 'snippet': 'TEMPORARY fix, as I found some info online, is to take it out of AUTO light mode. It does the flickering ONLY in AUTO light mode, for whatever reason. So you ...', 'snippet_highlighted_words': ['to take it out of AUTO light mode'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.e90post.com/forums/showthread.php?t=1986319&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.e90post.com%2Fforums%2Fshowthread.php%3Ft%3D1986319', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:WCBTETVKS7kJ:https://www.e90post.com/forums/showthread.php%3Ft%3D1986319&cd=22&hl=en&ct=clnk&gl=us', 'source': 'BIMMERPOST.com'}, {'position': 6, 'title': 'Lights Flickering | BimmerFest BMW Forum', 'link': 'https://www.bimmerfest.com/threads/lights-flickering.1103673/', 'displayed_link': 'https://www.bimmerfest.com › ... › E39 (1997 - 2003)', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c6ad3f4abcd15079662c3c4b46e0b2925b.png', 'date': 'Sep 29, 2017', 'snippet': 'One of my long beams was flickering, started about two seconds after being switched on, found out the voltage to that bulb was very low, touched ...', 'snippet_highlighted_words': ['my', 'flickering', 'out the'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.bimmerfest.com/threads/lights-flickering.1103673/&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.bimmerfest.com%2Fthreads%2Flights-flickering.1103673%2F', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:3fBBOtykzhgJ:https://www.bimmerfest.com/threads/lights-flickering.1103673/&cd=23&hl=en&ct=clnk&gl=us', 'source': 'bimmerfest.com'}, {'position': 7, 'title': 'H-I-D headlights flickering | BimmerFest BMW Forum', 'link': 'https://www.bimmerfest.com/threads/h-i-d-headlights-flickering.258438/', 'displayed_link': 'https://www.bimmerfest.com › ... › E46 (1999 - 2006)', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c6782749fc72a7c29474f55c207f2e9aa7.png', 'snippet': 'Mine would flicker occasionally and then go out completely, it was a poor connection at the bulb connector (previous owner installed aftermarket HID lights, did ...', 'snippet_highlighted_words': ['a poor connection at the bulb connector'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.bimmerfest.com/threads/h-i-d-headlights-flickering.258438/&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.bimmerfest.com%2Fthreads%2Fh-i-d-headlights-flickering.258438%2F', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:6KiPR7KzoogJ:https://www.bimmerfest.com/threads/h-i-d-headlights-flickering.258438/&cd=24&hl=en&ct=clnk&gl=us', 'source': 'bimmerfest.com'}, {'position': 8, 'title': 'Headlights flickering', 'link': 'https://www.tundras.com/threads/headlights-flickering.97879/', 'displayed_link': 'https://www.tundras.com › threads › headlights-flick...', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c6f29ec3dda783a4fc2c6ab216b00b488c.png', 'date': 'Nov 8, 2021', 'snippet': 'Hi guys, just the low beams, like the voltage is fluctuating and about to cut out. First thing I thought was loose connections. One guy had the ...', 'snippet_highlighted_words': ['loose connections'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.tundras.com/threads/headlights-flickering.97879/&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.tundras.com%2Fthreads%2Fheadlights-flickering.97879%2F', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:PMdD_nJjRi0J:https://www.tundras.com/threads/headlights-flickering.97879/&cd=25&hl=en&ct=clnk&gl=us', 'source': 'Toyota Tundra Forum'}, {'position': 9, 'title': 'Flickering headlight - BMW 3-Series and 4-Series Forum ...', 'link': 'https://f30.bimmerpost.com/forums/showthread.php?t=941635', 'displayed_link': 'https://f30.bimmerpost.com › forums › showthread', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c6dbe0a2e1aaa22b252e6a7b5630c6592b.png', 'date': 'Feb 1, 2014', 'snippet': 'The lights only flicker for me when I move off from being parked and its rained. Water runs off the car bonnet and the lights flickers as the ...', 'snippet_highlighted_words': ['lights', 'flicker', 'off', 'off the car', 'lights flickers'], 'about_page_link': 'https://www.google.com/search?q=About+https://f30.bimmerpost.com/forums/showthread.php?t=941635&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Ff30.bimmerpost.com%2Fforums%2Fshowthread.php%3Ft%3D941635', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:n7O9dyclW2sJ:https://f30.bimmerpost.com/forums/showthread.php%3Ft%3D941635&cd=26&hl=en&ct=clnk&gl=us', 'source': 'BIMMERPOST.com'}, {'position': 10, 'title': 'Whole car flickers.', 'link': 'https://www.jaguarforums.com/forum/xj-x351-53/whole-car-flickers-215902/', 'displayed_link': 'https://www.jaguarforums.com › ... › XJ ( X351 )', 'favicon': 'https://serpapi.com/searches/6521d3490a90c736e3a8d0f0/images/f0c8ff9fe93447cfbfb7daaf5f1448c605932ecfead932568b2d842d2d158b24.png', 'snippet': 'The whole dash would go crazy, lights would flicker for about 5 to 10 seconds. Litterally every light on the dash flicker, then everything would work fine again ...', 'snippet_highlighted_words': ['The', 'lights', 'flicker', 'the', 'flicker'], 'about_page_link': 'https://www.google.com/search?q=About+https://www.jaguarforums.com/forum/xj-x351-53/whole-car-flickers-215902/&tbm=ilp', 'about_page_serpapi_link': 'https://serpapi.com/search.json?engine=google_about_this_result&google_domain=google.com&q=About+https%3A%2F%2Fwww.jaguarforums.com%2Fforum%2Fxj-x351-53%2Fwhole-car-flickers-215902%2F', 'cached_page_link': 'https://webcache.googleusercontent.com/search?q=cache:RgBwjeAEVAkJ:https://www.jaguarforums.com/forum/xj-x351-53/whole-car-flickers-215902/&cd=27&hl=en&ct=clnk&gl=us', 'source': 'Jaguar Forums'}], 'pagination': {'current': 1, 'next': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&oq=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&hl=en&gl=us&start=10&sourceid=chrome&ie=UTF-8', 'other_pages': {'2': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&oq=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&hl=en&gl=us&start=10&sourceid=chrome&ie=UTF-8', '3': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&oq=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&hl=en&gl=us&start=20&sourceid=chrome&ie=UTF-8', '4': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&oq=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&hl=en&gl=us&start=30&sourceid=chrome&ie=UTF-8', '5': 'https://www.google.com/search?q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&oq=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&hl=en&gl=us&start=40&sourceid=chrome&ie=UTF-8'}}, 'serpapi_pagination': {'current': 1, 'next_link': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&start=10', 'next': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&start=10', 'other_pages': {'2': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&start=10', '3': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&start=20', '4': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&start=30', '5': 'https://serpapi.com/search.json?device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Left+headlight+is+flickering+on+and+off+on+my+car+bimmerforums.com&start=40'}}}
diff --git a/autoAidModules/search_funcs.py b/autoAidModules/search_funcs.py
new file mode 100644
index 0000000..241872e
--- /dev/null
+++ b/autoAidModules/search_funcs.py
@@ -0,0 +1,76 @@
+from serpapi import GoogleSearch
+from .sample_res import res
+from boilerpy3 import extractors
+from fake_useragent import UserAgent
+
+import requests
+
+extractor = extractors.ArticleExtractor()
+
+preferred_forums = {
+ "BMW": ["bimmerforums.com"]
+}
+
+ua = UserAgent()
+
+"""
+Website data:
+[
+
+{
+ "title":"",
+ "link": "",
+ "date": "", # prioritise older posts for older cars?,
+ "full-text": "",
+},
+
+]
+"""
+
+def find_preferred_forums(make):
+ if make not in preferred_forums:
+ return None
+ return preferred_forums[make]
+
+def get_preferred_forums(make):
+ if make not in preferred_forums:
+ return find_preferred_forums(make)
+ return preferred_forums[make]
+
+def parse_page(url):
+ content = extractor.get_content_from_url(url)
+ return content
+
+
+def search_on_forum(forum, query, max_results: int = 5):
+ params = {
+ "q": query + f" {forum}",
+ "location": "Austin, Texas, United States",
+ "hl": "en",
+ "gl": "us",
+ "google_domain": "google.com",
+ "api_key": "KEY"
+ }
+ #search = GoogleSearch(params)
+ #results = search.get_dict()
+
+ results = res
+ if results["search_metadata"]['status'] == "Success":
+ data = []
+ for idx, result in enumerate(results["organic_results"]):
+ if idx >= max_results:
+ break
+ new_dict = {
+ "title": result["title"],
+ "link": result["link"],
+ "full-text": ""
+ }
+ try:
+ resp = requests.get(result["link"], headers={"User-Agent": ua.random})
+ new_dict["full-text"] = extractor.get_content(resp.text)
+ except Exception as e:
+ print(f"Error parsing page {result['link']}: {e}")
+ data.append(new_dict)
+ return data
+ else:
+ return [] \ No newline at end of file