The homepage of the website I'm trying to scrape displays four tabs, one of which reads "[Number] Available Jobs". I'm interested in scraping the [Number] value. When I inspect the page in Chrome, I can see the value enclosed within a <span>
tag.
However, there is nothing enclosed in that <span>
tag when I view the page source directly. I was planning on using the Python requests
module to make an HTTP GET request and then use regex to capture the value from the returned content. This is obviously not possible if the content doesn't contain the number I need.
My questions are:
What is happening here? How can a value be dynamically loaded into a page, displayed, and then not appear within the HTML source?
If the value doesn't appear in the page source, what can I do to reach it?