In this article, you will learn to write a Python program which will take input from the user as a keyword like Facebook, amazon, geeksforgeeks, Flipkart, youtube, etc. and then search your google chrome browser history for that keyword and if the keyword is found in any of the URL then it will delete it. For example, suppose you have entered the keyword ‘geeksforgeeks’, so it will search your google chrome history, like ‘www.geekforgeeks.org’, it’s very obvious that this URL contains the keyword ‘geeksforgeeks’, then it will delete it, it will also search for articles (like “Is geeksforgeeks a good portal to prepare for competitive programming interview?”) containing ‘geeksforgeeks’ in their title and delete it. First of all, get the location in your system where the google chrome history file is located.
Note: Google chrome history file location in windows generally is: C:\Users\manishkc\AppData\Local\Google\Chrome\User Data\Default\History.
- Get Browser History using Python in Ubuntu
- History of Python
- response.history - Python requests
- Complete Django History | Python
- How to move back and forward in History using Selenium Python ?
- Python | Launch a Web Browser using webbrowser module
- Python | Get a google map image of specified location using Google Static Maps API
- Python del to delete objects
- numpy.delete() in Python
- Python MySQL - Delete Query
- Python | Delete elements in range
- Python | Pandas TimedeltaIndex.delete
- How to delete data from file in Python
- Delete a directory or file using Python
- DELETE method- Python requests
- Python Program to delete a file
- Python | Pandas Index.delete()
- Python | Delete items from dictionary while iterating
- Python | Delete elements with frequency atmost K
- How to Delete files in Python using send2trash module?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.