Put the entire code into a question, thank you to all that have replied but this issue is super annoying either way help is appreciated! Context: This code is meant to go onto the top reddit post of the day/week, then screenshot it and once that’s done it goes to the comments and screenshots the top comments of said post,
Tag: selenium
How to interact with the button using Selenium webdriver and Python
I want to try filling out the form on this page: https://konzinfoidopont.mfa.gov.hu. However, when I try to select the dropdown menu and click it, I get the following error: This is the mentioned button: And my code yet: Answer The desired element is within a Modal Dialog Box, so to click on the clickable element you need to induce WebDriverWait
selenium find elements don’t work it doesn’t find elements nad send keys
it can find the elements at the site and i am sure from method name and every step i make with selenium i got error can i solve this error at once with any replacement this is the code and this the Traceback: Answer There is no such element with class form in your page. Also you can send keys
Python Scraping Website urls and article numbers
Actually I want to scrape the all-child product link of these websites with the child product. Website which I am scraping is : https://lappkorea.lappgroup.com/ My work code is : This is the data which I want to scrape from the whole website : enter image description here When we go to any product as for the one product link is
Finding specifig value in class – Selenium (Python)
I’m trying to scrap a website using selenium. I tried using XPATH, but the problem is that the rows on the website change over time… How can I scrap the website, so that it gives me the output ‘21,73’ ? Answer You can just use querySelector that accepts CSS selectors. I personally like them way more than XPath: If that
Following links and crawling them
I was trying to make a crawler to follow links, with this code I was able to get the links but the part of entering the links and getting the information I need was not working, so a friend helped me to come up with this code It gets the json with the page items, but in loop number 230
Getting text from a object with Selenium
I’m trying to get the text inside of <pre> tag and I have tried with get_attribute(‘text’), get_attribute(‘value’), .text(), .value(), get_attribute(“innerHTML”) but I keep failing: Snapshot: This is the code that i’m using: And this is what it says when print: Answer To print the text within the <pre> tag you can use either of the following locator strategies: Using css_selector
How to extract the values of the alt atributte within img with selenium python
I have the following problem, I haven’t been able to solve it. I have to extract the text that appears in an alt attribute of an image. The id always changes, as does the contained alt. I noticed that the id only changes in this part Anyway, I am still unable to log in. Answer To extract and print the
No Output While Running Selenium in Headless Mode, Working in Non Headless
“Questions seeking debugging help (“Why isn’t this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself.” The desired behavior is to create an output file of scraped pages as per this working code (in non headless mode) and here’s the shortest code necessary to reproduce
How to resolve error with None type of soup.find table?
I try to get a table by using BeautifulSoap, and I faced error while using find method. I want to get headers of table from here: https://stooq.pl/t/?i=513&v=1&l=1 The id of a table i interested in is fth1, and HTML looks like that: My python script: I got the error: Traceback (most recent call last): File “/home/…/script.py”, line 25, in for