开发者

How do I grab info from source code from other site?

开发者 https://www.devze.com 2023-01-28 16:27 出处:网络
Is there a way to grab things out of the source code of another site directly into your site? For example, let\'s say than in开发者_高级运维 a site the following source code exists:

Is there a way to grab things out of the source code of another site directly into your site?

For example, let's say than in开发者_高级运维 a site the following source code exists:

<table ...>
            <tr>
              <td class=...>...</div></td>
            </tr>
            <tr>
              <td class=....><div align="... class=...>"Interesting string that keeps changing"</div></td>
            </tr>
          </table>

And we want that Interesting string that keeps changing to appear in our website as well.


you could use php

you use

$html = file_get_contents('url to website');

or use a hidden if you want a javascript function, and then just grab the innerhtml

0

精彩评论

暂无评论...
验证码 换一张
取 消