Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Efecto Airbnb
Efecto Airbnb Valencia
Commits
6a73d799
Commit
6a73d799
authored
Mar 07, 2019
by
Alfonso Sánchez Uzábal
Browse files
Adds delay between queries in geocoding script
parent
d663090e
Changes
1
Hide whitespace changes
Inline
Side-by-side
scraping/geocoding-viviendas-turisticas-comunitat-valenciana.php
View file @
6a73d799
...
...
@@ -117,6 +117,9 @@ if ( $fp !== FALSE ) { // if the file exists and is readable
$output
[]
=
'"'
.
$fp_csv
[
0
]
.
'","'
.
$fp_csv
[
1
]
.
'","'
.
$fp_csv
[
2
]
.
'","'
.
$fp_csv
[
3
]
.
'","'
.
$fp_csv
[
4
]
.
'","'
.
$lat
.
'","'
.
$lon
.
'"'
.
PHP_EOL
;
// delay between queries to avoid being blocked
sleep
(
3
);
}
fclose
(
$fp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment