Answer the question
In order to leave comments, you need to log in
How to parse a site in react in python?
I'm trying to parse twitter using selenium (the api was denied, twice), the tutorials advise finding elements via webdriver.find_element_by_class_name , but on twitter and on some other sites all classes are named something like:
div class=""css-18t94o4 css- 1dbjc4n r-1niwhzg r-sdzlij r-1phboty r-4iw3lz r-1xk2f4g r-109y4c4 r-1ii58gl r-yon6af r-1udh08x r-wwvuq4 r-1fneopy r-u8s19 r-o7ynqc r-6416eg r-6416eg r-
6416eg they are all inside div id="react-root" , so I thought that it is the react that does such a thing, in fact, the question is, is there any library to humanly parse this thing, or maybe there are tools in selenium/requests itself?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question