S
S
Sergey Matkovsky2020-12-19 20:40:17
Python
Sergey Matkovsky, 2020-12-19 20:40:17

How to increase the number of uploaded photos in Yandex images for parsing?

The problem is that in Yandex you need to scroll down to upload new photos, but how to do this for the parser?
If you do not upload new pictures, then their number will be limited and the pictures themselves will be the same.
I understand that the java script is loading, but I can’t find it anywhere in the html code, if so, please name the script and how to activate it using request or in some other way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ScriptKiddo, 2020-12-19
@anitop

how to activate it with request or in some other way

use selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()

https://selenium-python.readthedocs.io/getting-sta...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question