Skip to content

Commit c92345b

Browse files
authored
Merge pull request #76 from YJDave/doc
Fix minor bugs/changes in README.md
2 parents b82b591 + d11e4dd commit c92345b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If you like to be anonymous when searching things, want to archive tweets or mes
2222
- omit authentication enforcment for API requests on the twitter plattform
2323
- share tweets and tweet archives with other loklak users
2424
- search anonymously on your own search portal
25-
- create your own tweet search portal or statistical evaluations, i.e.:..
25+
- create your own tweet search portal or statistical evaluations
2626
- use Kibana to analyze large amounts of tweets as source for statistical data.
2727

2828
--------------------------------------------
@@ -54,9 +54,9 @@ To create a loklak object you can assign the `Loklak()` object to a variable.
5454
eg. `l = Loklak()`
5555
This creates an objects whose backend loklak server is `http://loklak.org/`
5656

57-
If you want to set this API to use your own server, you can now define it by doing
58-
`l = Loklak('http://192.168.192.5:9000/')` for example or pass a URL to it as
59-
`l = Loklak('http://loklak-super-cluster.mybluemix.net/')
57+
If you want to set this API to use your own server, you can now define it by doing
58+
`l = Loklak('http://192.168.192.5:9000/')` for example or pass a URL to it as
59+
`l = Loklak('http://loklak-super-cluster.mybluemix.net/')`
6060

6161
Note the trailing `/` is important and so is `http://`
6262

@@ -197,11 +197,11 @@ Using the class method `settings()` to returns a json of the settings being used
197197

198198
##### Hello test - Check if the server is responding properly and is online
199199

200-
Using the object created above `l.hello()` returns a json response of the status of the server
200+
Using the object created above `l.hello()` returns a json response of the server status
201201

202202
When the server is online, the json should read
203203
```json
204-
{'status': 'ok'}
204+
{"status": "ok"}
205205
```
206206

207207
##### Peers - API To find out the loklak peers
@@ -216,15 +216,16 @@ What this can do ?
216216
- Fetch the details of the user along with number of their followes and following
217217
- Fetch only the followers / following of a particular user
218218

219-
Query Structure: `l.user(<username>,<followers count>,<following count>)`
219+
Query Structure: `l.user(<username>, <followers count>, <following count>)`
220220

221-
`<username>` is a string, eg. `'loklak_app'`
221+
`<username>` is a string, e.g. `'loklak_app'`
222222
`<followers count>` and `<following count>` is a numeric or a string or `None`
223223

224-
eg. `l.user('loklak_app')`
225-
eg. `l.user('loklak_app',1000)` - 1000 followers of `loklak_app`
226-
eg. `l.user('loklak_app',1000,1000)` - 1000 followers and following of `loklak_app`
227-
eg. `l.user('loklak_app',None,1000)` - 1000 following of `loklak_app`
224+
e.g.
225+
1. `l.user('loklak_app')`
226+
2. `l.user('loklak_app', 1000)` - 1000 followers of `loklak_app`
227+
3. `l.user('loklak_app', 1000, 1000)` - 1000 followers and following of `loklak_app`
228+
4. `l.user('loklak_app', None, 1000)` - 1000 following of `loklak_app`
228229

229230
##### Accounts API
230231
LOCALHOST ONLY, Loklak server running on port `localhost:9000`
@@ -234,15 +235,15 @@ To query the user account details of the data within the loklak server, use
234235

235236
To update the user details within the server, package a `json` object with the following parameters and other parameters which needs to be pushed to the server and use the `action=update` where `action` is the 2nd parameter of the `account()` api
236237

237-
`l.account('name','update','{ json object }')`
238+
`l.account('name', 'update', '{ json object }')`
238239

239240
##### Search API
240241

241242
Public search API for the scraped tweets from Twitter.
242243

243-
Query structure: `search('querycontent','since date','until date', 'from a specific user', '# of tweets')`
244+
Query structure: `search('querycontent', 'since date', 'until date', 'from a specific user', '# of tweets')`
244245

245-
eg. l.search('doctor who')
246+
e.g. `l.search('doctor who')`
246247

247248
A search result in json looks as follows.
248249
```json
@@ -297,7 +298,7 @@ A search result in json looks as follows.
297298

298299
Mentioning the Since and Until dates
299300

300-
eg. `l.search('sudheesh001', '2015-01-10', '2015-01-21')`
301+
e.g. `l.search('sudheesh001', '2015-01-10', '2015-01-21')`
301302

302303
Which results in a json as follows
303304
```json
@@ -367,17 +368,16 @@ Valid parameters for `since` and `until` can also be `None` or any `YMD` date fo
367368

368369
The `from a specific user` parameter makes sure that the results obtained for the given query are only from a specific user.
369370

370-
`l.search('doctor who', '2015-01-10', '2015-01-21','0rb1t3r')`
371+
e.g. `l.search('doctor who', '2015-01-10', '2015-01-21','0rb1t3r')`
371372

372373
The `# of tweets` parameter is how many tweets will be returned.
373374

374-
`l.search('avengers', None, None, 'Iron_Man', 3)`
375+
e.g. `l.search('avengers', None, None, 'Iron_Man', 3)`
375376

376377
##### Aggregations API
377378

378379
##### GeoLocation API
379380

380381
Loklak allows you to fetch required information about a country or city.
381382

382-
eg. `l.geocode(['Barcelona'])`
383-
eg. `l.geocode(['place1','place2'])`
383+
e.g. `l.geocode(['Barcelona'])`, `l.geocode(['place1', 'place2'])`

0 commit comments

Comments
 (0)