-
Notifications
You must be signed in to change notification settings - Fork 47
/
index.php
67 lines (49 loc) · 1.56 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
require 'vendor/autoload.php';
use XFran\GTrends\GTrends;
$options = [
'hl' => 'en-US',
'tz' => 0,
'geo' => 'US',
'time' => 'all',
'category' => 0,
];
$gt = new GTrends($options);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GTrends</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="">
</head>
<body>
<?php
print_r('<pre>');
print_r("\n\n <h1>GTrends getRealTimeSearchTrends</h1>\n ");
print_r($gt->getRealTimeSearchTrends());
print_r("\n\n");
print_r("\n\n <h1>GTrends getDailySearchTrends</h1>\n ");
print_r($gt->getDailySearchTrends());
print_r("\n\n");
print_r("\n\n <h1>GTrends getSuggestionsAutocomplete</h1>\n ");
print_r($gt->getSuggestionsAutocomplete('Donald Trump'));
print_r("\n\n");
print_r("\n\n <h1>GTrends getGeo</h1>\n ");
print_r($gt->getGeo());
print_r("\n\n");
print_r("\n\n <h1>GTrends getCategories</h1>\n ");
print_r($gt->getCategories());
print_r("\n\n");
print_r("\n\n <h1>GTrends getAllOneKeyWord</h1>\n ");
print_r($gt->getAllOneKeyWord('Donald Trump'));
print_r("\n\n");
print_r("\n\n <h1>GTrends getAllMultipleKeyWords</h1>\n ");
print_r($gt->getAllMultipleKeyWords(['Donald Trump', 'Barack Obama']));
print_r("\n\n");
?>
<script src=""></script>
</body>
</html>