Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.graphext.com/llms.txt

Use this file to discover all available pages before exploring further.

In addition to author information also adds the location the tweet was send from (if available), and indicates whether a tweet was retweeted or favourited at least once. See below for a detailed list of the enrichment columns. ???+ info “API integration” To use this step you will need to create an app associated to your Twitter account, and obtain four items: the consumer_key, the consumer_secret, the token and the token_secret. To do so you can follow the steps here, and then add them to a Graphext integration.

Usage

The following example shows how the step can be used in a recipe.

Examples

This step doesn’t have any configuration parameters. Hence simply:
fetch_twitter(ds.id) -> (
  ds.user_created_at,
  ds.user_description,
  ds.user_favourites_count,
  ds.user_followers_count,
  ds.user_following_count,
  ds.user_listed_count,
  ds.user_profile_image_url_https,
  ds.user_protected,
  ds.user_tweets_count,
  ds.user_profile_url,
  ds.user_verified,
  ds.user_location,
  ds.lat,
  ds.long,
  ds.retweeted,
  ds.favorited,
  ds.source
)

Inputs & Outputs

The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name), datasets (ds or ds[["first_name", "last_name"]]) or models (referenced by name e.g. "churn-clf").
tweet_ids
column[category|number]
required
Twitter’s unique identifier for each tweet.
user_created_at
column[date]
required
Time the user who tweeted this tweet was created.
user_description
column[text]
required
Self-description of the user.
user_favourites_count
column[number]
required
How many tweets the user has favorited.
user_followers_count
column[number]
required
How many followers the user has.
user_following_count
column[number]
required
How many users the user is following.
user_listed_count
column[number]
required
How many times the user has been listed in public listings.
user_profile_image_url_https
column[url]
required
User’s picture.
user_protected
column[boolean]
required
Whether this user has protected their tweets or not.
user_tweets_count
column[number]
required
How many times this user has tweeted.
user_profile_url
column[url]
required
User’s profile url.
user_verified
column[boolean]
required
Whether this user is verified or not.
user_location
column[category]
required
Location extracted from the author profile.
lat
column[number]
required
Latitude this tweet was tweeted from.
long
column[number]
required
Longitude this tweet was tweeted from.
retweeted
column[boolean]
required
Whether you have retweeted this tweet.
favorited
column[boolean]
required
Whether you have favorited this tweet.
source
column[category]
required
Where this tweet was tweeted from as a HTML string.

Configuration

The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e. step(..., {"param": "value", ...}) -> (output).

Parameters

integration
string
required
ID of the integration you’d like to use.