nestauk / ds_digital_ads

Pilot project exploring insights from digital advertisements
MIT License
0 stars 0 forks source link

adding boilerplate code #3

Closed cmbrennan002 closed 9 months ago

cmbrennan002 commented 10 months ago

Description

This takes code to search twitter from the repo asf_online_data_exploration

Fixes # (issue) 01

Instructions for Reviewer

You will need to add the access token to your .env file - will send to you separately

Then, you can run:

cd pipeline python recent_search_twitter.py

Based on current search parameters, that should take 10 tweets (the min number we can search for) that have come from betway and contain the word 'promotion' in the last seven days, and add it to the json file stored in the s3 bucket.

cmbrennan002 commented 9 months ago

@india-kerle thanks heaps for the thoughtful PR! I've addressed most comments (agreed with all your structural suggestions) and flagged a few functions to leave for now. I've tested it runs on my machine, but given we've shifted a few things around, would really appreciate it if you could re-test on yours. Then let me know and will merge :)

india-kerle commented 9 months ago

cool! Will take a look now :) @cmbrennan002

india-kerle commented 9 months ago

ran like a dream! feel free to merge @cmbrennan002