Giter Site home page Giter Site logo

collect-social's People

Contributors

abglassman avatar bkey avatar bstarling avatar ccarey avatar kylerbrown avatar metame avatar ottoman91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

collect-social's Issues

Twitter: Review API, capture most important fields

Goal:

Come up with a standard list of tweet fields to save (if available) . This is meant to be the "default" config list. The plan is to allow saving of full tweet object or a targeted list of fields but we want to come up with the most relevant fields that would be used by useful in nearly every project.

So far people have mentioned coordinates and entities (contains hashtags, user_mentions, urls) as potentially useful fields that are not currently captured by discursive.

Additional info:

Placeholder store full tweet in s3

NOT READY FOR DEV

Placeholder for feature request: Optional setting to store full tweet object to S3.

I think it would sense to dump the whole tweet to s3 and keep the fields of interest in storage of choice (DB, ElasticSearch etc.) Then if we realize that we need more fields we can just modify the parser and rerun on the backed up data (rather than have to deal with api limits etc)

Contingent on issue #2

Twitter: Get user followers

Requirements:

  • Function should be part of poll_user
  • Accepts a username, returns a list of people following this account
  • Include unit test
  • Submit PR to branch v0.1

Add reddit functionality

We currently have a stand alone proof of concept for pulling down reddit data which @wwymak graciously put together for us here. I propose we use that as a reference for creating reddit support within collect-social using the same model. get_posts , get_comments etc.

update Feb 1, 2017 Issue is unclaimed

Next steps:

  • Contact @bstarling or post below if you would like to work on this
  • Create a branch reddit-integration and push basic folder structure. Push all subsequent changes to this branch.

Documentation: How to add unit tests

@kylerbrown has got us up and running with pytest and written the first few unit tests. We need documentation & links to external resources to show newcomers how to contribute test along with their new code.

Add basic twitter functionality

Goal:

Save tweets/users profiles from twitter to SQLITE db similar to how the below code will save facebook posts/users. Create a new folder in collect-social/twitter for the new code.

from collect_social.facebook get_posts

app_id = <YOUR APP ID>
app_secret = <YOUR APP SECRET>
connection_string = 'sqlite:///full-path-to-an-existing-database-file.sqlite'

get_posts.run(app_id,app_secret,connection_string,page_ids)

Keep in mind:

  • Try to keep api consistent across platforms. I.E. facebook.get_posts becomestwitter.search_tweets (search) or twitter.stream_tweets (streaming)
  • Use sane defaults so works with minimal setup/config.
  • Consider functionality which can be shared across both platforms be separated from the platform. I.E.utils/setup_db

Resources:

Add Collection/Source ID

The need for a "collection ID" has come up several times in discussions on slack.

This element would be used to track what initiative the piece of media was collected under. I.E. if we started collecting tweets from women's march all those tweets would be tagged under that project/process so we would know how/why this tweet was collected when analyzing a large population later. A pain point for analysts working with large data sets in the past has been seeing various pieces of media but not knowing exactly why/how they were added to the data set. If we plan on streaming multiple sources to a single data store or archiving them together it will be especially important to document and track this.

Thanks @ccarey and @superace for bringing this up.

Write unit tests

Looking for someone to start helping with unit tests. If you would like to work on this and feel strongly about a testing framework feel free to propose one. I would suggest pytest.

We can start small with just 2 or 3 basic tests and a update to the readme so future contributors can write their own tests.

Collect from voat.co

They have an API, ftw. There'll undoubtedly be questions about how to structure the collection but it probably shares 4chan/Reddit/forum characteristics so let's all help out!

Twitter: User following

Requirements:

  • Function should be part of poll_user
  • Accepts a username, returns a list of people following the user
  • Include unit test
  • Submit PR to branch v0.1

Twitter: Stream tweets by topic

Uses the twitter stream API tweepy streaming docs

Requirements:

  • part of stream_tweets.py
  • Setup up a stream listener to follow a list of topics
  • Should keep processing through errors on a single tweet.
  • Returns FULL tweet object as they come in. Storage of actual tweet will be handled by backed service and out of scope for this piece. Simply return the tweet object is sufficient
  • Submit PR to branch v0.1

Twitter: Poll user

Background

This function will be used to poll users over time. Users that have been identified as important nodes of a target community need to be polled over time to monitor their activity over time.

Requirements

  • Function accept a list of user handles
  • Function should return a dictionary of important user attributes.
'active':
'bio':
'location': user.location,
'followers': user.followers_count,
'following': user.friends_count,
'image': user.profile_image_url
  • PR should include unit tests (pytest)
  • PR should be merged with branch v0.1

This is a port of functionality getUserInfobyHandle

Twitter: Get tweets by handle

Requirements:

  • Function should be part of poll_user
  • Accepts a username, returns tweets in user timeline (within API limit)
  • Include unit test
  • Submit PR to branch v0.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.