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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:55:36+00:00 2026-05-25T22:55:36+00:00

There is a website which includes a JS code. Normally, when the page is

  • 0

There is a website which includes a JS code. Normally, when the page is opened by a user this JS code starts manually and provides a link about 10 seconds.
I am trying to catch this link. In PHP, I call this page with file_get_contents function, however as you predict link is not there.

Is there any way to make a HTTP request to this page and wait until javascript code started. Or can I invoke this JS function by using JQuery maybe?

If the question is not clear, I can provide more details. Thanks in advance.

  • 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-05-25T22:55:37+00:00Added an answer on May 25, 2026 at 10:55 pm

    I’d suggest looking into the javascript on the page and reverse-engineer how the link is dynamically generated. Then you can use regex to extract that info from the string returned by file_get_contents.

    I can probably help you on the reverse-engineering if you can provide extra information on the page in question (or similar).

    UPDATE:
    After some reversing, I found that the mp3 ripper site uses 2 api’s: one to push a video to get processed, and one to poke at the current status.

    First api:

    http://www.youtube-mp3.org/api/pushItem/?item=http%3A//www.youtube.com/watch%3Fv%3DXXXXXXXX&xy=trve
    

    Second api:

    http://www.youtube-mp3.org/api/itemInfo/?video_id=XXXXXXXX&adloc=
    

    XXXXXXXX is the youtube video id. The 2nd api returns JSONP where the padding is a variable assignment (info = {…};). In the json, there’s a “h” member that returns a long hash which can be used to ultimately construct the mp3 download file link.

    But to be a bit ethical, may I suggest looking into another approach (if allowed by your hosting environment)? You can use FFmpeg to convert the video on your own. There’s a wrapper class here: YouTube-to-MP3 conversion class

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

Sidebar

Related Questions

Is there any website which provides core java based programming challenges that tests programming
In my website there is a link like this http://backlinks.cheapratedomain.com/backlinks.php?url=emobileload.com for better SEO I
There is a website which is invalid XHTML (some closing tags are missing). I
I have a url which could be www.website.com/order/?pg3=2 or www.website.com/orderstatus/?pg2= There could be several
i have developed my website in VS2010. is there any tool freely available which
There are 5 websites in ASP.NET 2.0 which have the same code and database
There are several extensive code examples on a tutorial page at the ember web
I am creating a website using master page, which works fine. but after I
I have installed a piece of code on a website, wich includes gd functions.
I've downloaded a nightly build of webkit which includes a dll, pdb. There are

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.