N
N
netkovk2015-12-17 10:50:44
PHP
netkovk, 2015-12-17 10:50:44

Simple html dom how to get link?

You need to parse a random Wikipedia article. To do this, I pass the following address to the file_get_html function:
' https://en.wikipedia.org/wiki/Special:Random '. Everything works, it returns a random article, but after it returned, I need to know the address of this article. How to get the url of the document I'm parsing?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yakov Vylegzhanin, 2015-12-17
@netkovk

00368961a18d46afa920098bf61599c5.png
Between headthere is linka link for an android application, parse it and cut it as it should.

M
Max, 2015-12-17
@AloneCoder

No You
need to modify file_get_html, because file_get_contents is used there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question