All Projects → hppRC → kuon

hppRC / kuon

Licence: MIT license
🐦 [WIP] Twitter Client Library written in Rust 🦀

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to kuon

Twitter Bot
Node js twitter bot to send auto welcome message for your new followers
Stars: ✭ 184 (+291.49%)
Mutual labels:  twitter-api
ublog.el
🗿 elisp artifact – worked as a twitter client briefly
Stars: ✭ 18 (-61.7%)
Mutual labels:  twitter-api
twitter api
A Dart wrapper for the Twitter API v1.1
Stars: ✭ 56 (+19.15%)
Mutual labels:  twitter-api
Jekyll Twitter Plugin
A Liquid tag plugin for the Jekyll blogging engine that embeds Tweets, Timelines and more from Twitter API
Stars: ✭ 204 (+334.04%)
Mutual labels:  twitter-api
Twitterdelete
💀 Delete your old, unpopular tweets.
Stars: ✭ 231 (+391.49%)
Mutual labels:  twitter-api
mokkapps
My GitHub profile README which is automatically updated. Please ⭐️ if you like it
Stars: ✭ 63 (+34.04%)
Mutual labels:  twitter-api
Albert
这个是我个人网站的项目,欢迎贡献代码,力求能够应用到实际工作中java相关的大多数技术栈。有兴趣请Star一下,非常感谢。qq交流群:587577705 这个项目将不断地更新!生产环境:
Stars: ✭ 168 (+257.45%)
Mutual labels:  twitter-api
TwitterAutoReplyBot
This is a tiny Python script that replies to a specified number of tweets containing a specified hashtag.
Stars: ✭ 33 (-29.79%)
Mutual labels:  twitter-api
Egg Mode
a twitter api crate for rust
Stars: ✭ 249 (+429.79%)
Mutual labels:  twitter-api
tweet png
A flutter app to generate beautiful, high-quality screenshots of tweets from twitter.
Stars: ✭ 51 (+8.51%)
Mutual labels:  twitter-api
Tweetledee
A PHP library that provides an incredibly easy way to access Twitter data as JSON or RSS feed by URL or standard CLI syntax.
Stars: ✭ 208 (+342.55%)
Mutual labels:  twitter-api
Harpy
A Twitter app built with Flutter
Stars: ✭ 211 (+348.94%)
Mutual labels:  twitter-api
TwitterScraper
Scrape a User's Twitter data! Bypass the 3,200 tweet API limit for a User!
Stars: ✭ 80 (+70.21%)
Mutual labels:  twitter-api
Twitter To Sqlite
Save data from Twitter to a SQLite database
Stars: ✭ 203 (+331.91%)
Mutual labels:  twitter-api
twitter-stream-rs
A Rust library for listening on Twitter Streaming API.
Stars: ✭ 66 (+40.43%)
Mutual labels:  twitter-api
Bigdata Playground
A complete example of a big data application using : Kubernetes (kops/aws), Apache Spark SQL/Streaming/MLib, Apache Flink, Scala, Python, Apache Kafka, Apache Hbase, Apache Parquet, Apache Avro, Apache Storm, Twitter Api, MongoDB, NodeJS, Angular, GraphQL
Stars: ✭ 177 (+276.6%)
Mutual labels:  twitter-api
twitter-status
Twitter Status Web Component
Stars: ✭ 59 (+25.53%)
Mutual labels:  twitter-api
spark-twitter-sentiment-analysis
Sentiment Analysis of a Twitter Topic with Spark Structured Streaming
Stars: ✭ 55 (+17.02%)
Mutual labels:  twitter-api
grasp
Essential NLP & ML, short & fast pure Python code
Stars: ✭ 58 (+23.4%)
Mutual labels:  twitter-api
terraform-provider-twitter
No description or website provided.
Stars: ✭ 24 (-48.94%)
Mutual labels:  twitter-api

kuon

Kuon

Twitter Client Library written in Rust.

inspired by anaconda

Example

let builder = kuon::TwitterAPI::builder()
    .access_token("access_token")
    .access_token_secret("access_token_secret")
    .api_key("api_key")
    .api_secret_key("api_secret_key");

let api = builder.build().await?;

let res = api.search_tweets().q("rust").send().await?;
let res = api.favorite().id(0).send().await?;
let res = api.retweet().id(0).send().await?;

Shord-hand

// Please set API_KEY, API_SECRET_KEY, ACCESS_TOKEN, ACCESS_TOKEN_SECRET in your environment
let api = kuon::TwitterAPI::new_using_env().await?;

let res = api.search_tweets().q("rust").send().await?;
for tweet in res.statuses {
    println!("{}", tweet.text);
}

Advanced Type-safe Usage

use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    // Please set API_KEY, API_SECRET_KEY, ACCESS_TOKEN, ACCESS_TOKEN_SECRET in environment
    let api: kuon::TwitterAPI = kuon::TwitterAPI::new_using_env().await?;
    let res = api
        .search_tweets()
        .q("rust")
        // .geocode("geocode")
        // .lang("lang")
        // .locale("locale")
        // .result_type("result_type")
        // .count(100)
        // .until("2000-01-01")
        // .since_id(0)
        // .max_id(100000000)
        // .include_entities(true)
        .send()
        .await;

    match res {
        Ok(search_result) => {
            for tweet in search_result.statuses {
                println!("{}", tweet.text);
            }
        }
        Err(kuon::Error::TwitterAPIError(e, param_str)) => {
            // You can confirm a error originated from Twitter API.
            println!("{}", param_str);
            assert!(e.errors.len() > 0)
        }
        Err(kuon::Error::HTTPRequestError(e)) => {
            println!("{}", e);
            // Do something!
        }
        _ => panic!("Unexpected error!"),
    }

    Ok(())
}

See more details for /examples.

This crate is named after Japanese Virtual YouTuber Chitose Kudou

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].