Quasense Posted February 8, 2015 Share Posted February 8, 2015 hello. In this page has been most words search in PersianHow can I extract the Persian words and links of these words ? Good Luck Link to comment https://forums.phpfreaks.com/topic/294456-how-to-extract-links-from-a-web-page/ Share on other sites More sharing options...
cyberRobot Posted February 9, 2015 Share Posted February 9, 2015 You could use PHP's DOMDocument class: http://php.net/manual/en/class.domdocument.php It has an option to get elements by tag name: http://php.net/manual/en/domdocument.getelementsbytagname.php Link to comment https://forums.phpfreaks.com/topic/294456-how-to-extract-links-from-a-web-page/#findComment-1505241 Share on other sites More sharing options...
Quasense Posted February 10, 2015 Author Share Posted February 10, 2015 You could use PHP's DOMDocument class: http://php.net/manual/en/class.domdocument.php It has an option to get elements by tag name: http://php.net/manual/en/domdocument.getelementsbytagname.php Hi friends, Thanks for taking the time to help The problem is there is no Persian characters in the page source. you can check it yourself! so how can I extract the Persian words? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/294456-how-to-extract-links-from-a-web-page/#findComment-1505374 Share on other sites More sharing options...
QuickOldCar Posted February 10, 2015 Share Posted February 10, 2015 Google usually wants people to use their api's. Maybe you can get the data following this article. http://techslides.com/hacking-the-google-trends-api Link to comment https://forums.phpfreaks.com/topic/294456-how-to-extract-links-from-a-web-page/#findComment-1505398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.