PHP Scraping | Sololearn: Learn to code for FREE!

+1

PHP Scraping

can any one tell me how to scrape website html "tags" value in php

6/21/2020 3:01:11 PM

Farhan Ellahi

5 Answers

New Answer

+3

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %} So yes, web scraping lets us extract information from websites. But the thing is there are some legal issues regarding web scraping. Some consider it as an act of trespassing to the website where you are scraping the data from. That's why it is wise to read the terms of service of the specific website that you want to scrape because you might be doing something illegal without knowing it. Kartik Mishra Please remember to credit the source. https://www.ictea.com/cs/index.php?rp=%2Fknowledgebase%2F2058%2FiQue-es-andsharp039web-scrapingandsharp039.html&language=english

+3

+3

<?php $html = file_get_contents('http://pokemondb.net/evolution'); ?>

+1

My work is legal...

+1

Can you send me the sample code