Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Changes to run ingest script
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairjcbrown committed Dec 23, 2018
1 parent 720a6d5 commit bad29ca
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 48 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ $ docker-compose -f docker-compose-dev.yml run events-service python manage.py d
To load data into the service for development, the recommended solution is to use the load script within the `scripts` folder to populate the local database. Details on how to configure the script can be found in [`scripts/README.md`](scripts/README.md)\.

```sh
`./load_data.sh dev`
$ cd scripts/
$ ./load_data.sh dev
```

And to tear down the local development stack, simply run:
Expand Down Expand Up @@ -178,4 +179,3 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
### Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

94 changes: 51 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The following scripts ingest from 3rd party sites, transform the data, and send
You need to have python 3.6.6, and pipenv installed to run each script; the following commands will allow you to check both your python and pipenv version.

```
$ python -v
$ python --version
$ pipenv
```

Expand Down Expand Up @@ -61,4 +61,6 @@ View http://localhost and you should now see a list of events

To load data from all sources, you can run the following shell scripts with an environment flag

`./test.sh dev`
```sh
./load_data.sh dev
```
2 changes: 1 addition & 1 deletion scripts/src/eventbrite_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _post_payloads(payloads):
headers={"Content-type": "application/json"},
data=json.dumps(payload),
)
print(r.status_code)
print(r.text)
responses.append(r)


Expand Down

0 comments on commit bad29ca

Please sign in to comment.