Skip to content

Commit

Permalink
Readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Jun 1, 2018
1 parent 500d751 commit 24090a0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
27 changes: 14 additions & 13 deletions README.md
Expand Up @@ -6,17 +6,18 @@ This tool will read JSON strings from a Postgres Database or local folder* and m

### Quick Start

1. Make local clone of this repository: `git clone git@gitlab.vgiscience.de:lbsn/lbsn-twitter-json-mapping.git`
1. Create a local clone of this repository: `git clone git@gitlab.vgiscience.de:lbsn/lbsn-twitter-json-mapping.git`
2. Download current version of Python compiled ProtoBuf folder "[lbsnstructure](https://gitlab.vgiscience.de/lbsn/concept/tree/master/examples/python)" and place in your local copy root folder
3. Edit `/config/config.py` or optionally provide the following command line args:
* pO # passwordOutput (this is the password for the PostGres database where output will be send to; if 0, user will be asked)
* uO # usernameOutput (this is the username for the PostGres database where output will be send to; example: "someuser")
* aO # serveradressOutput (the IP Adress of the PostGres database where output will be send to, example: 111.79.10.12)
* nO # dbnameOutput (the database name of the PostGres database where output will be send to, example: "lbsn_test")
* pI # passwordInput (same as above, just where the data is coming from)
* uI # usernameInput
* aI # serveradressInput
* nI # dbnameInput
* t # transferlimit (stop script after x records, example: 50)
* tR # transferReactions (choose whether to process original posts only [`0`] or also include reactions to these posts such as retweets [`1`])
* tG # transferNotGeotagged (choose whether to limit processing to geotagged posts only [`0`] or also include non-geotagged posts [`1`])
3. Edit `/config/config.py`, or optionally provide the following command line args:

-pO # passwordOutput (this is the password for the PostGres database where output will be send to; if 0, user will be asked)
-uO # usernameOutput (this is the username for the PostGres database where output will be send to; example: "someuser")
-aO # serveradressOutput (the IP Adress of the PostGres database where output will be send to, example: 111.79.10.12)
-nO # dbnameOutput (the database name of the PostGres database where output will be send to, example: "lbsn_test")
-pI # passwordInput (same as above, just where the data is coming from)
-uI # usernameInput
-aI # serveradressInput
-nI # dbnameInput
-t # transferlimit (stop script after x records, example: 50)
-tR # transferReactions (choose whether to process original posts only [`0`] or also include reactions to these posts such as retweets [`1`])
-tG # transferNotGeotagged (choose whether to limit processing to geotagged posts only [`0`] or also include non-geotagged posts [`1`])
2 changes: 1 addition & 1 deletion transferData.py
Expand Up @@ -99,7 +99,7 @@ def parseJsonRecord(JsonRecord,origin):
postGeoaccuracy = None

if not post_guid:
print("No PostGuid")
sys.exit("No PostGuid")

#Some preprocessing for all types:
post_coordinates = jsonString.get('coordinates')
Expand Down

0 comments on commit 24090a0

Please sign in to comment.