The UCSB Library DREAM Lab supports a number of tools for acquiring and analyzing social media data. Feel free to schedule a consultation if these guides do not answer your questions. You can request a remote or in-person consultation by emailing dreamlab@library.ucsb.edu.
There are also online sources of pre-existing datasets: