1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Some help needed for scraping code

Discussion in 'General Programming Chat' started by Activeits, Jul 25, 2017.

  1. Activeits

    Activeits Newbie

    Jul 27, 2015
    Likes Received:
    Ok so I have a movie site and it's on word press. Here's the issue.

    I have the scraper so it takes information fro imdb for each movie. Then it scraps the link from putlocker by imdb Id. So the movies work great.

    Now I need the same thing for tv shows episodes. The problem is, is that it doesn't have a imdb id for each episode. So... Here's what I got

    i put the movie source in the player by this code...

    $values = info_movie_get_meta( 'Checkbx2' );
    echo '<iframe src="https://putlockers.movie/embed/'.$values.'/"allowfullscreen="true" scrolling="no" frameborder="0"></iframe>';

    the $values is the tt37939 imdb id
    but for the episode she have no imdb id
    i need to take the show name and convert it in to

    This is the movie player that I already got working

    https:// putlockers.movie/embed/tt5013056/

    The ttid makes it so it works

    This is the tv series player

    https: //putstream.com/show/Game-of-Thrones/07-02

    The 07-02 Is the season and episode.
    You can see there's no imdb Id so I need to convert it into something that works.

    Any experienced coder that can help?