开发者

How Can I scrape the Google Keyword Tool?

开发者 https://www.devze.com 2023-03-22 17:51 出处:网络
I want to extract data from the Google keyword tool - https://adwords.google.com/select/KeywordToolExternal. Their sit开发者_JAVA技巧e is in Javascript, the script I\'ve been working on is in PHP. Any

I want to extract data from the Google keyword tool - https://adwords.google.com/select/KeywordToolExternal. Their sit开发者_JAVA技巧e is in Javascript, the script I've been working on is in PHP. Anyway to do this?

Alternatively, if there is no good solution, I was thinking of downloading the csv file and extracting data from it. Unfortunately, I've never done something where I download a csv file then extracted data from it. Can anyone point me in the right direction?


Scraping the Keyword tool is not easy (and it breaks the terms and conditions). If you download the CSV file you can read it with php (it is a plain text file). You will have to create the logic to use the data in the file.

this will get you started

$file_handle = fopen("myfile", "r");
    while (!feof($file_handle)) {
    $line = fgets($file_handle);
    echo $line;
}
fclose($file_handle);
0

精彩评论

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

关注公众号