Need to extract data from same div names

Topic Resolution: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1627
    Varun MahajanVarun Mahajan
    Participant

    Hi, I need to scrape data from same div names.

    Please check an example below:

    https://www.worldometers.info/coronavirus/

    In the link given above, all numbers of cases, deaths, and recovered have the same div name. I even tried to get the exact x-path but it’s all similar and doesn’t give separate values but just one single first value it fetches.

    Kindly share how can I extract all the numbers separately.

    Thanks.

    #1629
    Suman M.Suman M.
    Keymaster

    Hi, I tried to scrape from above URL and could scrape all the data from it – https://www.screencast.com/t/1d1w65Ki
    If you are having issue scraping then please let us know your site’s backend login details so that we can create a scraper task for you. Thanks!

    #1630
    Varun MahajanVarun Mahajan
    Participant
    This reply has been marked as private.
    #1631
    Varun MahajanVarun Mahajan
    Participant
    This reply has been marked as private.
    #1632
    Suman M.Suman M.
    Keymaster

    I have created a task “worldometers – coronavirus” in your site. You can schedule it as per your need.
    And regarding custom variables/fields, you’ll first need to define it (create a sample post with these custom variables – total_cases, deaths, recovered, etc).
    Please check this – https://support.wpbots.net/documentation/custom-fields/

    Let us know if any queries.

    #1633
    Varun MahajanVarun Mahajan
    Participant

    I was using via shortcodes in pages:

    Coronavirus Disease (COVID-19)

    Can I still do this?

    #1634
    Varun MahajanVarun Mahajan
    Participant

    Its working fine now.

    Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register