JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.39k stars 702 forks source link

snscrape csv output #154

Closed DiameterEffect closed 3 years ago

DiameterEffect commented 3 years ago

My knowledge on python inst that great but, can someone walk me through on how to create a csv output to a folder where I can view the archived tweets at?

Thanks!

DiameterEffect commented 3 years ago

Details:I tried looking at the old issues in the past but I just dont seem to get it, especially in issue#105.

IceBerge421 commented 3 years ago

Hi @sunyoid, not sure if this is helpful, but I used some python scripts put together in the comments here and was able to get a CSV output: https://github.com/Mottl/GetOldTweets3/issues/98

Scroll down to the comments from a few days ago!

Using this, I was able to use snscrape to get tweets from a keyword search into a CSV. I hope that's helpful! (Note: GetOldTweets3 isn't working, so these comments are about using snscrape as an alternative!).

JustAnotherArchivist commented 3 years ago

118 has some code for this as well.

DiameterEffect commented 3 years ago

118 has some code for this as well.

thats only part of the code and when i pasted that in jupyter it gives me a whole bunch of error, and I have no clue how to code in python.

JustAnotherArchivist commented 3 years ago

@sunyoid I recommend you to go through some basic Python tutorial(s) before trying to use snscrape's API. The official one is very thorough. Once you get a grasp of Python code structure, data types, modules, etc., it should hopefully be fairly obvious despite the lack of documentation.

DiameterEffect commented 3 years ago

@sunyoid I recommend you to go through some basic Python tutorial(s) before trying to use snscrape's API. The official one is very thorough. Once you get a grasp of Python code structure, data types, modules, etc., it should hopefully be fairly obvious despite the lack of documentation.

alright i think ill do that and come back in 2 months and try this out. Thank you so much for your time!

leoGCoelho commented 3 years ago

@sunyoid i made a basic extension of snscrape that mades an CSV output with all tweets extracted leoGCoelho/Snscrape-Dataframe-Builder

DiameterEffect commented 3 years ago

@sunyoid i made a basic extension of snscrape that mades an CSV output with all tweets extracted leoGCoelho/Snscrape-Dataframe-Builder

alright I will try this later on, thank you for this!