« first day (430 days earlier)      last day (618 days later) » 

12:53
Hello!
I just need help to scrap asin on amazon webpage product, for example, on this snapshot, with selenium and python code. I've tested many parts code but unfortunately, not work. Here somes parts code i've used:
```
asin_n = WebDriverWait(driver,5).until(EC.presence_of_element_located((By.XPATH, "(//td[@class='.prodDetAttrValue'])"))).text
or
asin_n = WebDriverWait(driver, 5).until(EC.visibility_of_element_located((By.CSS_SELECTOR, "(//td[@class='.prodDetAttrValue'])"))).text
or
asin_n = WebDriverWait(driver,20).until(EC.visibility_of_element_located((By.XPATH, "//td[@class='a-size-bas
Part code of amazon webpage product on this screen:
https://ibb.co/cFWm912
@DebanjanB thanks for your help on my topic. Unfortunately, your code help out somes errors on start. Can you help me please?
Hi @JohnDoe Let me have a relook
Ok thank you!
@JohnDoe any reason to put additional braces around the xpath value (//td[@class='.prodDetAttrValue']) and (//td[@class='.prodDetAttrValue'])
More over, (By.XPATH, "(//td[@class='.prodDetAttrValue'])") warrants a exact match, which isn't part of my answer
Is it a public website? If so can you share the url?
See, almost all of your code attempts aren't valid expressions
I have suggested the valid expressions
Yes , its a public url, but i want to scrap asin on any webpage product on amazon, so this part of code is available on all products
For example
@JohnDoe honestly, no one have the time to assume which url you are using amazon or msn
you need to share all the relevant info so contributors find it easy to answer your question
@JohnDoe Now, I realize your actual question
What exactly do you need please?
let me construct a fresh answer for you
Asin is always in same part of sourcecode on webpage product
Ok thank you!!
by the mean time you may like to edit the question and add all the relevant additional info you supplied here
@JohnDoe Asin is always in same part of sourcecode on webpage product: Other then you who else could have known it?
13:16
It's true, sorry. I'm a beginner on python and selenium, and on stackoverflow too. I'm too bad in english language, but i'm here for to learn more knowledge ;)
@JohnDoe never mind. It's good to see that you haven't left the problem midway
Checkout the updated answer
and do hangout here in Selenium Room to get help and offer help to those who needs it
Don't forget to pay forward the help you recieve
Thank you very much for the help given! Everything is working perfectly now! Of course, if I can help someone, I will. It will just take me a little while to increase my knowledge, and be able to help those who need it!
@JohnDoe Ofcoarse we are here to help others and build a strong community
 
2 hours later…
15:47
Hi @DebanjanB. I'm trying to write data to CSV file from int variables, but failing. I asked a question here: https://stackoverflow.com/questions/70480874/error-trying-to-read-and-write-to-a-csv-file-different-columns

Maybe you could shed some light on it? Thanks!
16:32
Nvm, figured it out. :)
 
4 hours later…
20:35
@DebanjanB, are you there?
@Cassano yep, I thought your issue was resolved. So I'm going through the questions newest first
Yeah, that's resolved! I hit another roadblock lol...
It's not related to Selenium, but text files.
@Cassano lolxxx
@Cassano you seem to be learning Python and Selenium in a top gear ;)
Hahaha... I try!
@Cassano Let me have a look, if I have something, I'll update
20:39
Thank you, champ!

« first day (430 days earlier)      last day (618 days later) »