-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
70 lines (48 loc) · 2.43 KB
/
README
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
68
69
* overview
warning - this is an anti-social script. i'm not recommending its
use. however i can see the utility. if you must have the mayorship of your
local bar/coffeeshop, etc. you might find it useful. this exercises a very
little bit of the foursquare API and allows you to interact with the API.
* requirements
- libwww-perl - this has the HTTP client functionality, commonly available.
- JSON - used to parse the responses from foursquare
* configuration
you'll want to make sure that you create the appropriate .4squatterrc file
with the right username and password, etc. put into place.
* seeding the process
in order to seed the process you should dig up the latitude and longitude of
the area where you'd like to poke around. then get the list of the venues
that are nearby.
ZenDoggy[sulrich]% foursquatter.pl --action=disp_venues --geolat=44.9116 \
--geolong=-93.329
# vid venue name geolat geolong
#---------------------------------------------------------------------
19098 Edina Grill 44.9116 -93.329
993195 Bone Adventure 44.9116893 -93.3290071
477665 Normandale College 44.9117382 -93.3290307
358183 il vostro boutique 44.9118158 -93.3290075
31532 Salut Bar Americain - Edina 44.9115 -93.3294
1450348 Julia Bretey Salon 44.9119001 -93.3290077
691615 Gyropolis 44.9114999 -93.3294
1025052 James Loren Salon 44.9118 -93.3294
493299 New China Wok 44.9120019 -93.329008
52142 Premier Cheese Market 44.912 -93.329
redirect the output to the file that you'd like to use to be the see for batch updates.
ZenDoggy[sulrich]% foursquatter.pl --action=disp_venues --geolat=44.9116 \
--geolong=-93.329 --vcount=30 > foo-venues.txt
edit this file to add/remove the venues that you have in the mix. note that
the fields are tab delimited. make sure you don't rip out the tabs when you
save the file.
batch file format:
vid <tab> name <tab> <geolat> <tab> <geolong> <newline>
lines starting with a hash are ignored as comments.
* single shot check-in
for this, all you need to provide is the
ZenDoggy[sulrich]% foursquatter.pl --action=checkin --vid=31532
checkin success: 31532 - <note this will be blank in the single shot mode>
* batch check-in
ZenDoggy[sulrich]% foursquatter.pl --action=checkin-batch
checkin success: 19098 - Edina Grill
... elided for brevity ...
checkin success: 227616 - Starbucks
checkin success: 701995 - Bella Salon and Spa