Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
Querying Another Webpage for Data with Javascript? Or Another Language

so I am still a baby programmer so this is a pretty general question and I am looking for starting points, concepts, and directions to look into. I will try and provide concrete examples though.

So I am wondering how one could go about crawling another webpage for data from a webpage you made.

As a concrete example, we can use lottery result webpages ... So I live in Ontario, and our big lottery here is Lotto Max ... the official results page is https://www.olg.ca/en/lottery/play-lotto-max-encore/about.html ...

So let's say you were making a website that shows lotto results ... so we know the link above ... and if you inspect you can find the elements which contain those ... if you inspect and follow through in the correct section you eventually get into the divs with a class name "lotto-ball-large selected lotto-ball" and within those there is a div with class name "ball-number". There's also the div with a class name "lotto-ball-large special-ball-lmax selected lotto-ball" and within that there is an eighth and final div with class name "ball-number" for the bonus number. And these are of course just sorted in ascending order with the bonus ball at the end.

So at this point, we know the actual website link we would need to query ... we also know the divs we need to query for the winning numbers ... also the corresponding div for the date and whatnot ...

My question is what are methodologies or functions in javascript for doing this? Especially en masse with large sets of data. Like once you identify the location and the classes or IDs of data you want to pull, what are good methodologies or functions in javascript or other languages for doing so.

Thank you.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!