Correctly "Point" to a Data Element on Webpage |
Correctly "Point" to a Data Element on Webpage |
Crusader |
Nov 26 2022, 11:57 AM
Post
#1
|
Group: Members Posts: 3 Joined: 26-November 22 Member No.: 28,654 |
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, data 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. 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. In this example, the data element I am looking for is "01/18/2023(est)." Please note: The formula below is only the HTML portion of the formula I use in GoogleSheets; I have left out the part that pertains to the "spreadsheet" portion. I will be happy to share the full formula if that helps. I am requesting assistance in getting the formula below corrected so it "points" to "Earnings Date" 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! |
Lo-Fi Version | Time is now: 24th September 2024 - 03:50 PM |