M
M
matveyvarg2015-09-29 16:51:55
Python
matveyvarg, 2015-09-29 16:51:55

What is the error when requesting the hh.ru API?

from grab import Grab
g = Grab()
g.setup(post={'text':'c#',
             'search_field':'',
              'employment':'',
              'schedule':'',
              'period':'30'
              })
g.go('https://api.hh.ru/vacancies')
print(g.response.code)
print(g.response.body)

Returns a 403 type=forbidden error. The documentation says it's a permissions error. The application does not need authorization, I just want to parse the list of vacancies. Where is the mistake ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mukizu, 2015-10-05
@mukizu

GET /vacancies will return the search results for vacancies.

GET request, and you seem to POST.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question