开发者

How Can I scrape the Google Keyword Tool?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜