paramsg = { "keywords" : "кладовщик") } html_page = requests.get(href, params=paramsg) 

upd. the problem was solved when I wrote "storekeepers" saves query parameters. Changed to "storekeepers" and the request went right.

Closed due to the fact that it was off topic by aleksandr barakin , jfs , cheops , VenZell , user194374 Jun 8 '16 at 14:45 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - aleksandr barakin, jfs, cheops, VenZell, Community Spirit
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • The given example is fully working. Except for the extra bracket) at the end of the second line. - m9_psy
  • one
    @ m9_psy it’s not clear whether the example is working even if the bracket is removed: the byte constant may not be in the utf-8 encoding. - jfs
  • Add # coding=utf-8 , try again. - Nick Volynkin
  • @NickVolynkin: Without the encoding declaration, there would be a SyntaxError on Python 2. The problem (theoretically) could be that the file was saved in an encoding incompatible with the declared one. But as the update shows, the question is not related to Python at all. - jfs
  • Yes, when I asked a question, I thought it was in the python coding that the case was - Vladimir

0