N
N
NoName22813372020-07-11 23:30:23
Python
NoName2281337, 2020-07-11 23:30:23

What is the right way to do something with requests?

When I do get overgrown, no matter what site, it returns just the html code of this page to me, but on the dictionary. How to do it normally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SirotaKazansky, 2020-07-11
@SirotaKazansky

So it doesn't matter to you which site returned what it has with your query parameters. That is, you asked him for text / HTML, he returned it, if the site can give json, ask him for json and parse it.
Explain how the dictionary should be formed, what should be in it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question