Merge pull request #351 from Dark-Feather/darkfeather-rss-feedparsing
Dark-Feather RSS Feed Parsing
This commit is contained in:
commit
a06d54004c
1 changed files with 2 additions and 2 deletions
|
@ -305,7 +305,7 @@ def request_many(requests: typing.List[Request]) -> typing.Dict[str, Response]:
|
||||||
awaits = []
|
awaits = []
|
||||||
for request in requests:
|
for request in requests:
|
||||||
awaits.append(_request(request))
|
awaits.append(_request(request))
|
||||||
task = asyncio.wait(awaits, loop=loop, timeout=5)
|
task = asyncio.wait(awaits, timeout=5)
|
||||||
loop.run_until_complete(task)
|
loop.run_until_complete(task)
|
||||||
loop.close()
|
loop.close()
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ class Client(object):
|
||||||
request_many = request_many
|
request_many = request_many
|
||||||
|
|
||||||
def strip_html(s: str) -> str:
|
def strip_html(s: str) -> str:
|
||||||
return bs4.BeautifulSoup(s, "html5lib").get_text()
|
return bs4.BeautifulSoup(s, "lxml").get_text()
|
||||||
|
|
||||||
def resolve_hostname(hostname: str) -> typing.List[str]:
|
def resolve_hostname(hostname: str) -> typing.List[str]:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue