change user agent to ripbang

This commit is contained in:
Daniel Dimijian 2022-03-02 02:24:22 -05:00
parent b5c1cf9144
commit ed61390bde
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ for argument in sys.argv[1:]:
bang = '!' + argument
r = requests.get('https://duckduckgo.com/',
params={'q': bang + ' SEARCHTEXT'},
headers={'user-agent': 'test/0.0.1'})
headers={'user-agent': 'ripbang'})
searchengine = unquote(re.search("url=[^']+", r.text).group(0))
searchengine = searchengine.replace('url=', '')