Hey.
The issue i am getting says :-
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
Is this the error you get?
I think the first thing we need is the website you are trying to use Selenium on and what you are trying to do.
The reason i ask is if you are trying to go through each hidden div you could instead do :-
browser.find_elements(By.XPATH, "/html/body/app-root/ac-site-layout/div")
and this would...
Give this a try :D
import requests
#Get the page
html = requests.get("https://www.py4e.com/code3/mbox-short.txt").text
#set counter to 0
counter = 0
#Turn all lines into a list
for line in html.split('\n'):
#Check to see if from is in the line
if "From" in line:
#now turn...
Its this bit:-
[word_list.append(word) for line in lines for word in line.split() if word not in word_list]
for someone new to python it works and i understand what's happening lol but for someone new it could be troublesome lol
I think @cbreemer example would be great for us programmers who have been doing this a while lol, its short its sweet, we understand what it does and there is less code to read but mine is designed to be a bit longer but easier for someone new to follow and understand, broken down a bit so you...
Hey so the issue you have is your making a list with:
lst = list(fh)
then your trying to make a list again with a list with:
new_lst = lst.split())
what you will need to do is loop the list you just created then you can turn each of the first lists into a new list if that makes sense.
I have...
If i was to show you some of the ground breaking websites i built back in 2010 when i was 16 you would laugh at me. If i was to show you some of the macros i built in AHK a few years ago, you would probably say WHY. If i showed you my python scripts from when i started 3 years ago you would ask...
That booking is made by a company called WeFix and the issue you will face here isnt making the system but instead getting all of the price etc. That's the bit that's taking me the longest, once you have found a way of automating that part, i use python for that then you can use PHP to build the...
Ebay dev community is pants and Ebay is just as bad, i spoke to them and they only change they have made is they now use Oauth as well as Auth where i was Auth but they have assured me that will no cause me any issues :S
Up until last month, my code was working perfectly. I was able to get a refresh token from eBay using AuthToken but for some reason, it just stopped. I have tried getting a new AuthToken with the same results and i have got the token manually from eBay and it works. I am at a loss as to what has...
As far as I am aware as you do not need to login to the site it makes the information public and fair game :D and my script does not bypass any security features or use any vulnerabilities I see no issues :D
So to get the data I used Chrome developer menu, and watched the network as I submit...
I was going to do a video but i have been so busy lately but i might do next week and upload it explaining everything :D
In a nutshell, Coding is about thinking outside the box. We know this data is coming from somewhere all I did was request the page with data and then converted the returned...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.