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

  • Home
  • SEARCH
  • 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 7874099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:42:45+00:00 2026-06-03T02:42:45+00:00

I have to scrape this page using php curl. In this when the user

  • 0

I have to scrape this page using php curl. In this when the user scrolls down , more items are loaded using ajax . Can I call the URL that the ajax script is calling ? If so, then how do I figure the URL out ? I know a bit of ajax, but the code there is kind of complex for me.
Here is the relevant js code pastebin

Alternatively can someone suggest an alternative method of scraping that page? PS : I doing this for good cause.

Edit: I figured it out. Live http headers. QUestion can be closed. downvoted to oblivion.

  • 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-03T02:42:48+00:00Added an answer on June 3, 2026 at 2:42 am

    You can use FireBug for that. Switch to the Console-Tab and then make the page make the AJAX-request.

    This is what should see after scrolling to the bottom of the page: http://www.flipkart.com/computers/components/ram-20214?_l=m56QC%20tQahyMi46nTirnSA–&_r=11FxOYiYfpMxmANj4kGJzg–&_pop=flyout&response-type=json&inf-start=20

    and if you scroll further: http://www.flipkart.com/computers/components/ram-20214?_l=m56QC%20tQahyMi46nTirnSA–&_r=11FxOYiYfpMxmANj4kGJzg–&_pop=flyout&response-type=json&inf-start=40

    The tokens seem to always remain the same: _l=m56QC%20tQahyMi46nTirnSA-- and _r=11FxOYiYfpMxmANj4kGJzg--, so does the _pop-parameter: _pop=flyout So let’s have a look at the other parameters:

    This one was for the main page:

    //no additional parameters...
    

    this one for the first ‘reload’:

    &response-type=json&inf-start=20
    

    and this one for the second ‘reload’:

    &response-type=json&inf-start=40
    

    So, appearently you just have to append &response-type=json&inf-start=$offset to your initial URI to get the results in JSON-format. You can also see the contents in FireBug which should make it very easy to work with them.

    Here’s a screenshot:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with many HTML lines like this: <ul><li><a href='a_silly_link_that_changes_each_line.php'>the_content_i_need</a></li></ul> Now as
I have a PHP scraper script which I use to scrape a page on
I'm trying to scrape a price from a web page using PHP and Regexes.
I have a malformed page to scrape, and have had a hard time getting
I'm using PHP to data scrape another website. However, on certain occasions I need
How do I scrape html tables using the XML package? Take, for example, this
I'm using beautifulSoup to scrape a page that has a ISO-8859-1 encoding however I've
I am using watir-webdriver to scrape from a page with nested table based layout.
I want to scrape a page of data (using the Python Scrapy library) without
Goal: I want to scrape the word Paris inside an iframe using cURL. Say

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.