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 8175251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:42:52+00:00 2026-06-06T22:42:52+00:00

I am curretnly attempting to write a script in python that allows me to

  • 0

I am curretnly attempting to write a script in python that allows me to send a get request to a webpage (using the python requests module) and then parsing the response with the module beautiful soup.

The problem I am running into is that the table I am trying to get gets loaded/created via a javascript after the initial DOM loads therefore the response to my get request does not contain it.

  • 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-06T22:42:53+00:00Added an answer on June 6, 2026 at 10:42 pm

    Two possible things you could do, which depends on your problem.

    1. Get the table directly
    If you actually want to get the table, check what request is issued to get the table. For example, you can use Firebug or Chrome Developer Tools to get the right structure for the request.

    2. The Javascript is important
    If it is more important to support many websites, and it’s important that the javascript does some magic, you could use something like Selenium to use a Brwoser which excecutes the Javascript and you can get the source after the table is loaded.


    Update – based on your URL in your comment
    You can see on the Network Tab in the Chrome Developer Tool, that it loads very long for this request:

    http://www.ticketmaster.com/json/browse/music?select=n93

    So we assume that this loads your data. Open the URL in your browser, and you see the data of your table is there in the JSON Format.
    If you only want to parse/get this table and nothing generic for a lot of pages, I would just GET the data with this aproach.

    Update
    Try to change the table with the filter or the day range. You can examine how the API works and issue the request in the way you want.

    filter for Dance/Electronic in the Next 7 Days:
    /json/browse/music?g=Dance%2FElectronic&select=n7

    There is also another API call:
    http://www.ticketmaster.com/json/browse/music/histogram?select=n7

    But I can’t tell you what it’s for. But I think you have now a good direction and more time than me to understand how it works 😉


    Tools
    The tool I’ve used to find the URLs is the built in Chrome Developer Tool with the Network tab. Activate the tool, refresh the page and tinker in the requests to understand whats happening.

    It’s also very easy to parse JSON with python: http://docs.python.org/library/json.html

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

Sidebar

Related Questions

In the process of trying to write a Python script that uses PIL today,
I am attempting to write a interpreter that will turn a string like: vector(random(0,
I apologize for the vague title. I am attempting to write a query that
I have a python script that parses an XML file that contains part information
I'm attempting to write a bash script to parse out the following log file
I'm currently attempting to write my own program that mirrors the pmap command, specifically
I am attempting to write a line of code that will take a line
I am attempting to write a program that utilizes a ComboBox to display currently
I'm attempting to write a search function for a database table that needs to
I'm attempting to write a function that recursively computes the resulting fibonacci number from

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.