What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Importing a Data Element into a Spreadsheet

Crusader

New member
Joined
Nov 24, 2022
Messages
2
Reaction score
0
HTML Coins
0
Hello,

New member, first post.

For quite a while I had been using the formula below to import "Earnings Date" from CNBC to GoogleSheets. For the past few months, the formula has stopped working. My understanding is, elements have been moved around on the CNBC page (redesigned) and I am no longer correctly "pointing" to the element I wish to import ("Earnings Date"). I don't know HTML to figure out how to correct the formula below so it points to "Earnings Date" (under "Events") on the "redesigned" web page. All my trial and error efforts have been in vain.

I am requesting assistance in getting the formula below corrected so it "points" to "Earnings Date" (the actual date vs the title) on CNBC's web site.

If this is not the correct forum, please guide me to an appropriate forum.

Code:
//html/body/div[2]/div/div[1]/div[3]/div/div[2]/div[1]/div[5]/div[2]/section/div[3]/ul/li[1]/span[2]

All help will be greatly appreciated!
 
I forgot to add that a ticker symbol has to be entered in the search box at the top right side of the page; this prompts CNBC to pull data for that ticker symbol. One of the data elements is "Earnings Date." It can be found on the lower half of the page, under the heading "Events."

A ticker symbol picked at random: AAL.

Please note: I have shared only the HTML portion of the formula I use in GoogleSheets; I left out the part that pertains to the "spreadsheet" portion.
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back