Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:46:16+00:00 2026-06-16T00:46:16+00:00

I been trying for over 2 hours to import timestamp from zap2it.com link to

  • 0

I been trying for over 2 hours to import timestamp from zap2it.com link to my google spreasheet.

Here is link I am trying to importxml from.
http://affiliate.zap2it.com/tvlistings/ZCGrid.do?zipcode=78238&lineupId=DISH641:-

Here is what I am tryign to import
enter image description here

Here is what I tried so far

=importxml("http://affiliate.zap2it.com/tvlistings/ZCGrid.do?aid=dish&pkg=8388608&fromProvider=true&zipcode=78238&x=52&y=18"&B1,"//body//div[3]/div/div/div[3]/div/div")

EDIT
I was able to improve and get better results

//body//div[3]/div/div/div[1]//*

but it shows timestamp from all over the page. not exactly what I need.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:46:17+00:00Added an answer on June 16, 2026 at 12:46 am

    [The first complication is that the data stream returned from dereferencing that URI is not actually XML; it has several thousand well-formedness errors (unescaped ampersands in URIs, unescaped ampersands and less-than signs in scripts, some embedded HTML, some miscellaneous errors). Since you’re not reporting problems from that, however, I’ll assume that somewhere between the server and your XPath expression someone is doing some tidying.]

    I think you’ll get better results if you use the id and class attributes that are extensively used in the document. The material you want looks like this in the source (you can use any browser-based debugging tool to find it; I used the ‘Web Inspector’ in Safari); I have indented to make the structure more visible, and fixed some well-formedness errors in one of the a elements (missing whitespace between attribute-value pairs).

    <div class="zc-tn" id="zc-tn-top">
      <div class="zc-tn-i">
        <a href="ZCGrid.do?fromTimeInMillis=1355781600000" 
           class="zc-tn-l" 
           title="Move the grid three hours earlier"></a>
        <div class="zc-tn-c">
          <span class="zc-tn-z" 
                title="Central Standard Time">CST</span>
          <div class="zc-tn-t">7:00 PM</div>
          <div class="zc-tn-t">7:30 PM</div>
          <div class="zc-tn-t">8:00 PM</div>
          <div class="zc-tn-t">8:30 PM</div>
          <div class="zc-tn-t">9:00 PM</div>
          <div class="zc-tn-t">9:30 PM</div>
        </div>
        <a href="ZCGrid.do?fromTimeInMillis=1355803200000" 
           class="zc-tn-r" 
           title="Advance the grid three hours"></a>
      </div>
    </div>
    

    A simple search verifies that the value zc-tn-top is indeed unique as an ID value in the document. Given that, a simple XPath expression to retrieve all the elements whose display is circled in your image is (assuming xhtml is bound to the XHTML namespace):

    //xhtml:div[@id='zc-tn-top']//xhtml:div[@class='zc-tn-t']
    

    It looks from your question as if your XPath evaluator is namespace-challenged or namespace-oblivious, so you may need to write this as

    //div[@id='zc-tn-top']//div[@class='zc-tn-t']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to solve this problem for over 14 hours now...I am
Well I have been trying this problem for over 10 hours and have no
I've been trying to debug something for over 8 hours, and in order to
I've been trying to debug this error for over three hours now, changing filenames,
I've been trying over the last few hours to implement a jQuery easing effect
I've been messing with this bit of code for over an hour trying to
I have been trying to learn python over the last couple of months and
I've been trying to rack my head over this but it's just not working.
I've been trying to figure out how to iterate over the list of columns
For the past few days I have been trying to play any sound over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.