-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
test.py
import asyncio,aiohttp
url = 'http://www.bcbgeneration.com/shop-dresses-day#?start=0&sz=39&format=ajax'
@asyncio.coroutine
def fetch():
session = aiohttp.ClientSession()
r = yield from session.get(url)
body = yield from r.read()
print(r.status)
session.close()
def get():
import requests
r = requests.get(url)
print(r.status_code)
get()
print('===' * 10)
loop = asyncio.get_event_loop()
loop.run_until_complete(fetch())
loop.close()
You can see that when a '#' in the url, aiohttp fail to get the url, but the requests can. I don't know why it , can you tell me