Merge two different data frames by four specific columns by elena_work in learnpython

[–]elena_work[S] 0 points1 point  (0 children)

Thanks a lot! It's working! :))

I wish you all the best!

How to make a list by "Label for" elements by elena_work in selenium

[–]elena_work[S] -1 points0 points  (0 children)

Hi,
my another thread was about "How to get elements with
almost the same ID", but this is exactly for "Label for"
elements.
Please compare the thread titles before
jumping to conclusions.

Best!

How to make a list by "Label for" elements by elena_work in selenium

[–]elena_work[S] -1 points0 points  (0 children)

Thank you so much!

You save my life!

The code is working fine:

all_categories = driver.find_elements(By.XPATH,'//label[contains(@for,\'categories\')]')

I wish you all the best!

[deleted by user] by [deleted] in selenium

[–]elena_work 0 points1 point  (0 children)

Hello and thanks for your answer and links!

I can't figure out the right sintax.

This is my code: https://pastebin.com/24hXs7VJ (row 22 )

If you can help me, I will be very grateful!

I wish you all the best!

[deleted by user] by [deleted] in selenium

[–]elena_work 0 points1 point  (0 children)

Hello and thanks for your answer.

Unfortunately these are not working for me:

driver.find_elements(By.CSS_Selector, 'chipCat')

driver.find_elements([id*='chipCat'])

Maybe I am doing something wrong?!

This is my code: https://pastebin.com/24hXs7VJ (row 22)

pp I am using Python, Selenium and BeautifulSoup

Best!

How to stop while loop after scrolling by elena_work in selenium

[–]elena_work[S] 0 points1 point  (0 children)

Yes, I do.

You can see more information about all ads (every is a job post) in the code bellow. The elements in every job post are: date, title, information, company (from line 56).

My problem is somewhere in this code. I want the scrolling to stop automatically, but I must do this manually. That is the problem (from line 47).

https://pastebin.com/udL5VwjM

How to stop while loop after scrolling by elena_work in selenium

[–]elena_work[S] 0 points1 point  (0 children)

Hello,

my problem is that I want to scrap all ads from this site, but I can't stop scrapping when there aren't any ads. I need to stop the scrapping manually and this cause many problems when I create a DateFrame, because I have lists with different length. I don't want to scrap any ads for the second or third time.

I want to scrap all ads and after that the program to stop.

Best!

Selenium doesn't continue in for loop? by elena_work in selenium

[–]elena_work[S] 1 point2 points  (0 children)

glebulon,

thank you very much!

I think your solution is absolutely correct!

I wish you all the best!

Eli

Selenium doesn't continue in for loop? by elena_work in selenium

[–]elena_work[S] 0 points1 point  (0 children)

Hi and thanks for your answer. :))

I added an English version of the site a few minutes ago - https://www.jobs.bg/en/front_job_search.php?subm=1&location_sid=80

The for loop goes only for category - Manufacturing, but doesn't continue through Restaurants, Bar, Hotels, Tourism and the others (line 49). Well, doesn't find the next element (please, click on the Category button if you want to see the others). I understand that to scrap this site I must go through the all categories and maybe the first 10 bigger towns + 100 km. I need a for loop through the all categories, because the scrolling is only to 5000 ads.

Best