mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-10 06:06:41 +00:00
Add session arg to get_web
This commit is contained in:
parent
c79b3bfafd
commit
8378ed6526
@ -35,10 +35,11 @@ def redis_publish(rdb, item, item_project, item_type, item_subproject=None, ite
|
||||
rdb.lpush(routing_key, item)
|
||||
|
||||
|
||||
def get_web():
|
||||
def get_web(session=None):
|
||||
ua = UserAgent()
|
||||
|
||||
return Web(
|
||||
session=session,
|
||||
proxy=os.environ.get("PROXY", None),
|
||||
rps=os.environ.get("RPS", 1),
|
||||
logger=stdout_logger,
|
||||
|
Loading…
x
Reference in New Issue
Block a user