mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
reppy 0.4.1 has a significantly different api apparently, so for now let's go back to 0.3.4
This commit is contained in:
parent
fe18d915f5
commit
125a31165a
@ -44,8 +44,7 @@ def _robots_cache(site):
|
|||||||
req_sesh.headers.update(site.extra_headers())
|
req_sesh.headers.update(site.extra_headers())
|
||||||
if site.user_agent:
|
if site.user_agent:
|
||||||
req_sesh.headers['User-Agent'] = site.user_agent
|
req_sesh.headers['User-Agent'] = site.user_agent
|
||||||
_robots_caches[site.id] = reppy.cache.RobotsCache(
|
_robots_caches[site.id] = reppy.cache.RobotsCache(session=req_sesh)
|
||||||
session=req_sesh, capacity=5)
|
|
||||||
|
|
||||||
return _robots_caches[site.id]
|
return _robots_caches[site.id]
|
||||||
|
|
||||||
|
4
setup.py
4
setup.py
@ -32,7 +32,7 @@ def find_package_data(package):
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='brozzler',
|
name='brozzler',
|
||||||
version='1.1b7.dev116',
|
version='1.1b7.dev117',
|
||||||
description='Distributed web crawling with browsers',
|
description='Distributed web crawling with browsers',
|
||||||
url='https://github.com/internetarchive/brozzler',
|
url='https://github.com/internetarchive/brozzler',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
@ -59,7 +59,7 @@ setuptools.setup(
|
|||||||
install_requires=[
|
install_requires=[
|
||||||
'PyYAML',
|
'PyYAML',
|
||||||
'youtube-dl',
|
'youtube-dl',
|
||||||
'reppy==0.4.1',
|
'reppy==0.3.4',
|
||||||
'requests',
|
'requests',
|
||||||
'websocket-client',
|
'websocket-client',
|
||||||
'pillow==3.3.0',
|
'pillow==3.3.0',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user