Answer the question
In order to leave comments, you need to log in
Select div on click?
Good day.
How to implement highlighting a div block on click and then sending it to the handler?
An example of this is highlighting a message on VKontakte. Screenshot example.
Answer the question
In order to leave comments, you need to log in
Try to use the threading module for these purposes. For me, in most cases, it closes all questions on multithreading.
If you want to parse only 2 sites, then it's easier to split this script into 2 and run in parallel.
If you have many more such tasks, then use threads and in order not to manually create new windows (driver = webdriver.Chrome) and not invent a bicycle for them, it is better to immediately look towards selenoid or its analogues.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question