Open buddha314 opened 6 years ago
If you're using python 3 sometimes emojis will screw with unicode decoding of the text files. Do open(fn, 'r', encoding="latin-1") if you're getting a UnicodeDecodeError
If you want to make this work with my schema, I'll make you a contributor and we can develop on it instead.
I think putting the python code in a subdirectory organized under python
would be a great idea for python users. But this code is for the older v1 dataset, not the v2 data set. I've done the same thing for PostgreSQL you can find my scripts under ./PostgreSQL
@Meeds122 see my note at the bottom of #20
https://github.com/fivethirtyeight/russian-troll-tweets/issues/20#issuecomment-416716716
@EvanCarroll Great, could you create an issue and assign it to me? I'll try to contribute this week. I have some other things I could add as well.
I know this is an abuse of "issues" but it doesn't warrant a full repo. Here is some Python code you can cut/paste
And a quick loader.