Skip to content

URL with # #824

@wanggp3

Description

@wanggp3

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions