I am new to coding, using stackoverflow for the first time. Wondering if I can get some help on this here.
I am trying to scrape the total no.of jobs given on this link. https://jobs.bestbuy.com/bby?id=all_jobs&spa=1&s=req_id_num
Following is my code.
import os
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
os.environ['PATH'] += "/Users/monicayadav/PycharmProjects/pythonProject4/selenium/venv/bin"
driver = webdriver.Firefox()
driver.implicitly_wait(30)
driver.get('https://jobs.bestbuy.com/bby?id=all_jobs&spa=1&s=req_id_num')
wait = WebDriverWait(driver, 10)
JobCountBESTBUY = wait.until(ec.presence_of_element_located((By.XPATH, "//p[contains(@class, 'font-wt-500 ng-binding')]"))).text
print(JobCountBESTBUY)
Output I am getting
jobs found
Process finished with exit code 0
I am getting only "job found" as a result , but I need this number instead 1,925