W
W
Will-Corporation2016-02-16 01:06:45
PHP
Will-Corporation, 2016-02-16 01:06:45

How to parse a Periscope profile?

The essence of the problem:
In the field on the site, a person must enter his Periscope login.
The parser parses the values:
Avatar;
name;
login;
number of subscribers;
number of subscriptions.
Help formulate a request.
Sample page for parsing www.periscope.tv/smolup
I would appreciate your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Rybalka, 2016-02-16
@Will-Corporation

$userName = $_REQUEST['username']
$pageContent = file_get_contents('http://www.periscope.tv/' . $userName);

And then parse the contents of head with regular expressions. Despite the fact that the site is on ReactJs, the resulting content has everything that you have listed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question