Occasionally the search results will contain links with arguments such as 'dq', which was being erroneously used in attempts to extract the 'q' element from query strings. This enforces that only links with '?q=' or '&q=' (elements with a standalone 'q' arg) will have the element extracted. I also refactored the naming of this element once extracted to be just 'q'. Although this seems counterintuitive, it makes a little more sense since this element is the one we're extracting. It's a vague url arg name, but it is what it is. Bump version to 0.5.2 for hotfix release
		
			
				
	
	
		
			30 lines
		
	
	
		
			868 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			868 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import setuptools
 | |
| 
 | |
| long_description = open('README.md', 'r').read()
 | |
| 
 | |
| requirements = list(open('requirements.txt', 'r'))
 | |
| 
 | |
| setuptools.setup(
 | |
|     author='Ben Busby',
 | |
|     author_email='benbusby@protonmail.com',
 | |
|     name='whoogle-search',
 | |
|     version='0.5.2',
 | |
|     include_package_data=True,
 | |
|     install_requires=requirements,
 | |
|     description='Self-hosted, ad-free, privacy-respecting metasearch engine',
 | |
|     long_description=long_description,
 | |
|     long_description_content_type='text/markdown',
 | |
|     url='https://github.com/benbusby/whoogle-search',
 | |
|     entry_points={
 | |
|         'console_scripts': [
 | |
|             'whoogle-search=app.routes:run_app',
 | |
|         ]
 | |
|     },
 | |
|     packages=setuptools.find_packages(),
 | |
|     classifiers=[
 | |
|         'Programming Language :: Python :: 3',
 | |
|         'License :: OSI Approved :: MIT License',
 | |
|         'Operating System :: OS Independent',
 | |
|     ],
 | |
| )
 |