gladisor / AdviceBot

Chatbot which gives general advice using a language model
GNU General Public License v3.0
0 stars 0 forks source link

Create data extracting function #13

Open gladisor opened 3 years ago

gladisor commented 3 years ago

We need a function which pulls one days worth of data from pushshift using the functions we have already defined. This function should take in a starting date and query the maximum amount of posts from this time period. It should combine a post with each comment, repeating the post for the number of comments it has. Most of this code is already in the test.py file, it just needs to be packaged into a function and placed in utils.py

Inputs:

Outputs:

DrowsyDame3000 commented 3 years ago

tristan help do i close this

gladisor commented 3 years ago

Change two things:

Helpful stackoverflow: https://stackoverflow.com/questions/34325812/python-add-days-in-epoch-time

Make sure to link this issue in the pull request

Please do not press the green button yet 🤣