Skip to main content

Twitter Scraper using Python

Project description

Twitter Scraper Python

Get data from twitter using REST API from Twitter :3

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.6
  • Internet Connnetion

Installation

To install pytwitterscraper :

pip install pytwitterscraper

Usage

First you have import libray pytwitterscraper :

from pytwitterscraper import TwitterScraper

and call class object TwitterScraper :

tw = TwitterScraper()

or you can able to use proxy :

tw = TwitterScraper(proxy_enable=True, proxy_http="xxx.xxx.xxx.xxx:xxxx",proxy_https="xxx.xxx.xxx.xxx:xxxx")

If you have step by step You can able to use pytwitterscraper

Class Object Data

Class Object Classes Description
get_profile(name=None,id=None,ids=[None],names=[None]) Get Profile from Twitter With select Name or ID or Names or IDS
get_tweets(id,count=20) Get List Tweet from Profille Twitter By ID
get_tweetinfo(id,count=20) Get Tweet Information By ID
get_tweetcomments(id) Get Tweet Comments By ID Top 10 Comment
get_trends(code) Get Trend Hashtags UPDATE : You can able to use country code to get trends overworld!
searchkeywords(query) Search Keyworld With Users and Topics

Example Code

  1. Get Profile Example : I want get profile from Shirakami Fubuki :

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> profile = tw.get_profile(name="shirakamifubuki")
    >>> profile.__dict__
    >>> {'id': '997786053124616192', 'name': '白上フブキ@ShirakamiFubuki', 'screen_name': 'shirakamifubuki', 'url': 'https://twitter.com/shirakamifubuki', 'description': 'Vtuber事務所ホロライブプロダクション/1期生白上フブキ🦊❖担当絵師:凪白みと@lemon_mito 【ツイ担当】🦊は黒上🌽はユニコン 【絵】#絵フブキ 【生放送】#フブキch 【切り抜き】#フブ切り【スケジュール】#白上式手抜きスケジュール', 'location': '誕生日\u300010月5日/ツイステ沼🐙アークナイツ沼/FGO沼', 'verifed': False, 'follower': 589583, 'following': 668, 'extended_url': 'https://t.co/R9TNhC7sPO', 'tweet': 75702, 'media': 9120, 'profileurl': 'https://pbs.twimg.com/profile_images/1322559849872334850/G2vq3G01.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_banners/997786053124616192/1594284737', 'createat': datetime.datetime(2018, 5, 19, 10, 28, 27, tzinfo=datetime.timezone.utc)}
    
  2. Get Profile Example : I want get profile from ID 880317891249188864 :

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> profile = tw.get_profile(id="880317891249188864")
    >>> profile.__dict__
    >>> {'id': '880317891249188864', 'name': 'ときのそら🐻11/29.2ndLIVEパラレルタイム!', 'screen_name': 'tokino_sora', 'url': 'https://twitter.com/tokino_sora', 'description': '🎊 2ndアルバム『ON STAGE!』ビクターエンタテインメントより好評発売中!🎉11/29ときのそら2ndLIVE『パラレルタイム』開催決定!!🐻バーチャルアイドルときのそら(๑╹ᆺ╹)横アリ目指してがんばります୧(๑•̀ㅁ•́๑)૭✧❣️#ときのそら,#ときのそら生放送,#soraArt', 'location': '日本 東京', 'verifed': None, 'follower': 318548, 'following': 7123, 'extended_url': 'https://t.co/YVd92xsmZA', 'tweet': 19794, 'media': 1887, 'profileurl': 'https://pbs.twimg.com/profile_images/1296434665016844288/2RqmlpoD.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_banners/880317891249188864/1602301415', 'createat': datetime.datetime(2017, 6, 29, 6, 51, 55, tzinfo=datetime.timezone.utc)}
    
  3. Get Tweet Example : I want get tweets from Shirakami Fubuki :

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> tweets = tw.get_tweets(997786053124616192, count=3)
    >>> tweets.contents
    >>> [{'id': 1313103613204467712, 'created_at': datetime.datetime(2020, 10, 5, 13, 7, 52, tzinfo=datetime.timezone.utc), 'lang': 'ja', 'text': '✨白上フブキお誕生日記念ボイス&グッズ✨おるやんけのぬいぐるみの夢が叶いましたそして湯呑もいつか作りたいと言ってた夢が叶いました夢が沢山詰まったグッズ達ですよろしくおねがいします🌽🔽購入はコチラ🔽… https://t.co/ZksPkhYQI2', 'hashtags': [], 'media': [], 'urls': [{'url': 'https://t.co/ZksPkhYQI2'}], 'likes': 8656, 'relay': 0, 'retweet': 2329}, {'id': 1325440832795635713, 'created_at': datetime.datetime(2020, 11, 8, 14, 11, 34, tzinfo=datetime.timezone.utc), 'lang': 'ja', 'text': '⏰25時から\u3000ポルポルと一緒に幽霊調 査いくことになったよーー!!!!✨今ソロで頑張ってるみたいぞ(^・ω・^§)ノ【Phasmophobia】 本\u3000\u3000\u3000\u3000気 【尾丸ポルカ/ホロライブ】 https://t.co/MO7Xug3chb @YouTubeより', 'hashtags': [], 'media': [], 'urls': [{'url': 'https://t.co/MO7Xug3chb'}], 'likes': 1448, 'relay': 0, 'retweet': 254}, {'id': 1325458019069538304, 'created_at': datetime.datetime(2020, 11, 8, 15, 19, 52, tzinfo=datetime.timezone.utc), 'lang': 'ja', 'text': '⏰25時から!!!!突発!キツネ属による🎪🌽✨✨Phasmophobia✨✨先輩調査員として引っ張っていくぞぉおおっ!ポルポルも上手くなってるので!2人でプロ調査しにいくぞぉぉおいっ!!!🔽待機しておるか🔽… https://t.co/2vUfw2RyY6', 'hashtags': [], 'media': [], 'urls': [{'url': 'https://t.co/2vUfw2RyY6'}], 'likes': 1707, 'relay': 0, 'retweet': 350}]
    
  4. Get Tweet Info Example : I want to get info ID Tweet 1324993735248109568 :

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> twinfo = tw.get_tweetinfo(1324993735248109568)
    >>> twinfo.contents
    >>> {'id': 1324993735248109568, 'created_at': datetime.datetime(2020, 11, 7, 8, 34, 58, tzinfo=datetime.timezone.utc), 'lang': 'ja', 'text': '⏰20時からです今日のお祝いは20時からです!✨21時は5期生コラボみたいから皆でみよーっ🌽100万人をみんなでお祝いするやーつ🔽いつもありがとっ🔽 https://t.co/JV5IW889AE #フブキch https://t.co/KSGTLDdnt3', 'hashtags': ['フブキch'], 'media': [], 'urls': [], 'likes': 4204, 'relay': 0, 'retweet': 771}
    
  5. Get Tweet Comments Example : I want to get comments from ID Tweet 1324993735248109568 :

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> twcomments = tw.get_tweetcomments(1324993735248109568)
    >>> twcomments.contents
    >>> [{'id': 1324993789363056641, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 11, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki 了解です!!', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993879691599876, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 32, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki 了解です!', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993879611904000, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 32, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki 🥰🥰🥰🥰🥰🥰', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993804059897857, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 14, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki りょぴ!', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993901317529600, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 37, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki りょぴ!', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993889401413632, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 35, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki りょぴ!', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993901900386304, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 38, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki 塾で見れねー', 'hashtags': [], 'media': [], 'urls': [], 'likes': 1, 'relay': 0, 'retweet': 0}, {'id': 1324993880912064512, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 33, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki りょぴ!!', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993849077297155, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 25, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki 了解です〜!', 'hashtags': [], 'media': [], 'urls': [], 'likes': 0, 'relay': 0, 'retweet': 0}, {'id': 1324993855440052225, 'created_at': datetime.datetime(2020, 11, 7, 8, 35, 26, tzinfo=datetime.timezone.utc), 'comment': '@shirakamifubuki I love you fubuki', 'hashtags': [], 'media': [], 'urls': [], 'likes': 1, 'relay': 0, 'retweet': 0}]
    
  6. Get Lasest Trends Twitter Example: I want get trend from Thailand:

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> trends = tw.get_trends(code="TH") # You can able to see ISO Codes in https://countrycode.org/
    >>> trends.contents
    >>> [{'name': '#SMTOWN_LIVE', 'description': None, 'url': 'http://twitter.com/search?q=%23SMTOWN_LIVE', 'tweet': '1108215'}, {'name': '#RedVelvet', 'description': None, 'url': 'http://twitter.com/search?q=%23RedVelvet', 'tweet': '566537'}, {'name': '#SUPERJUNIOR', 'description': None, 'url': 'http://twitter.com/search?q=%23SUPERJUNIOR', 'tweet': '217757'}, {'name': '#TVXQ', 'description': None, 'url': 'http://twitter.com/search?q=%23TVXQ', 'tweet': '120887'}, {'name': '#Taeyeon', 'description': None, 'url': 'http://twitter.com/search?q=%23Taeyeon', 'tweet': '154390'}, {'name': 'Raiden', 'description': None, 'url': 'http://twitter.com/search?q=Raiden', 'tweet': '186955'}, {'name': 'SHINee', 'description': None, 'url': 'http://twitter.com/search?q=SHINee', 'tweet': '406524'}, {'name': 'Psycho 5', 'description': None, 'url': 'http://twitter.com/search?q=%22Psycho+5%22', 'tweet': '15301'}, {'name': 'From Home', 'description': None, 'url': 'http://twitter.com/search?q=%22From+Home%22', 'tweet': '268654'}, {'name': 'K.R.Y', 'description': None, 'url': 'http://twitter.com/search?q=K.R.Y', 'tweet': '13205'}, {'name': 'Chanyeol', 'description': None, 'url': 'http://twitter.com/search?q=Chanyeol', 'tweet': '252720'}, {'name': 'The Only', 'description': None, 'url': 'http://twitter.com/search?q=%22The+Only%22', 'tweet': '1496947'}, {'name': 'Exo is Back', 'description': None, 'url': 'http://twitter.com/search?q=%22Exo+is+Back%22', 'tweet': '22041'}, {'name': 'UN Village', 'description': None, 'url': 'http://twitter.com/search?q=%22UN+Village%22', 'tweet': '69001'}, {'name': 'better days', 'description': None, 'url': 'http://twitter.com/search?q=%22better+days%22', 'tweet': '145275'}, {'name': 'WENDY', 'description': None, 'url': 'http://twitter.com/search?q=WENDY', 'tweet': '367529'}, {'name': 'The Riot', 'description': None, 'url': 'http://twitter.com/search?q=%22The+Riot%22', 'tweet': '48474'}, {'name': 'Make a Wish', 'description': None, 'url': 'http://twitter.com/search?q=%22Make+a+Wish%22', 'tweet': '113451'}, {'name': 'Culture Humanity', 'description': None, 'url': 'http://twitter.com/search?q=%22Culture+Humanity%22', 'tweet': '546277'}, {'name': 'FREE CONCERT ALL AROUND WORLD', 'description': None, 'url': 'http://twitter.com/search?q=%22FREE+CONCERT+ALL+AROUND+WORLD%22', 'tweet': '13625'}, {'name': 'Happy New Years', 'description': None, 'url': 'http://twitter.com/search?q=%22Happy+New+Years%22', 'tweet': '693923'}, {'name': '#จับมือกลัฟให้แน่น', 'description': None, 'url': 'http://twitter.com/search?q=%23%E0%B8%88%E0%B8%B1%E0%B8%9A%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B8%A5%E0%B8%B1%E0%B8%9F%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B9%81%E0%B8%99%E0%B9%88%E0%B8%99', 'tweet': '12864'}, {'name': '#ถ้ายวลงรูปคู่จะ', 'description': None, 'url': 'http://twitter.com/search?q=%23%E0%B8%96%E0%B9%89%E0%B8%B2%E0%B8%A2%E0%B8%A7%E0%B8%A5%E0%B8%87%E0%B8%A3%E0%B8%B9%E0%B8%9B%E0%B8%84%E0%B8%B9%E0%B9%88%E0%B8%88%E0%B8%B0', 'tweet': 'None'}, {'name': '#EXO_SC_DESERVEBETTER', 'description': None, 'url': 'http://twitter.com/search?q=%23EXO_SC_DESERVEBETTER', 'tweet': 'None'}, {'name': '#aespa', 'description': None, 'url': 'http://twitter.com/search?q=%23aespa', 'tweet': '442073'}, {'name': '#mooyorselcaday', 'description': None, 'url': 'http://twitter.com/search?q=%23mooyorselcaday', 'tweet': 'None'}, {'name': '#dispatch', 'description': None, 'url': 'http://twitter.com/search?q=%23dispatch', 'tweet': '343501'}, {'name': '#RookieThSelcaday', 'description': None, 'url': 'http://twitter.com/search?q=%23RookieThSelcaday', 'tweet': 'None'}, {'name': '#เกร็งกิเดส', 'description': None, 'url': 'http://twitter.com/search?q=%23%E0%B9%80%E0%B8%81%E0%B8%A3%E0%B9%87%E0%B8%87%E0%B8%81%E0%B8%B4%E0%B9%80%E0%B8%94%E0%B8%AA', 'tweet': 'None'}, {'name': '#MarkTuan', 'description': None, 'url': 'http://twitter.com/search?q=%23MarkTuan', 'tweet': '63072'}, {'name': '#TAEYONG', 'description': None, 'url': 'http://twitter.com/search?q=%23TAEYONG', 'tweet': '231701'}, {'name': '#702ต้อนรับปีวัว', 'description': None, 'url': 'http://twitter.com/search?q=%23702%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%99%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%9B%E0%B8%B5%E0%B8%A7%E0%B8%B1%E0%B8%A7', 'tweet': '61865'}, {'name': '#ATMMGth', 'description': None, 'url': 'http://twitter.com/search?q=%23ATMMGth', 'tweet': 'None'}, {'name': '#MayachannelxGulf2021', 'description': None, 'url': 'http://twitter.com/search?q=%23MayachannelxGulf2021', 'tweet': '74142'}, {'name': '#GirlsGeneration', 'description': None, 'url': 'http://twitter.com/search?q=%23GirlsGeneration', 'tweet': '135140'}, {'name': '#JOHNNY', 'description': None, 'url': 'http://twitter.com/search?q=%23JOHNNY', 'tweet': '26374'}, {'name': '#BAEKHYUN', 'description': None, 'url': 'http://twitter.com/search?q=%23BAEKHYUN', 'tweet': '262990'}, {'name': '#SuperM', 'description': None, 'url': 'http://twitter.com/search?q=%23SuperM', 'tweet': '118805'}, {'name': '#NCT127', 'description': None, 'url': 'http://twitter.com/search?q=%23NCT127', 'tweet': '547216'}, {'name': '#winten', 'description': None, 'url': 'http://twitter.com/search?q=%23winten', 'tweet': 'None'}, {'name': '#IRENE', 'description': None, 'url': 'http://twitter.com/search?q=%23IRENE', 'tweet': '116149'}, {'name': '#สวัสดีปีใหม่2564', 'description': None, 'url': 'http://twitter.com/search?q=%23%E0%B8%AA%E0%B8%A7%E0%B8%B1%E0%B8%AA%E0%B8%94%E0%B8%B5%E0%B8%9B%E0%B8%B5%E0%B9%83%E0%B8%AB%E0%B8%A1%E0%B9%882564', 'tweet': '21148'}, {'name': '#SonYeJin', 'description': None, 'url': 'http://twitter.com/search?q=%23SonYeJin', 'tweet': '61341'}, {'name': '#2021ขอให้คริสสิงโต', 'description': None, 'url': 'http://twitter.com/search?q=%232021%E0%B8%82%E0%B8%AD%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B8%84%E0%B8%A3%E0%B8%B4%E0%B8%AA%E0%B8%AA%E0%B8%B4%E0%B8%87%E0%B9%82%E0%B8%95', 'tweet': '59434'}, {'name': '#สคสHNYtoหยิ่นวอร์', 'description': None, 'url': 'http://twitter.com/search?q=%23%E0%B8%AA%E0%B8%84%E0%B8%AAHNYto%E0%B8%AB%E0%B8%A2%E0%B8%B4%E0%B9%88%E0%B8%99%E0%B8%A7%E0%B8%AD%E0%B8%A3%E0%B9%8C', 'tweet': '25244'}, {'name': '#YANGYANG', 'description': None, 'url': 'http://twitter.com/search?q=%23YANGYANG', 'tweet': '20489'}, {'name': '#ถึงคุณCTRในปี2021', 'description': None, 'url': 'http://twitter.com/search?q=%23%E0%B8%96%E0%B8%B6%E0%B8%87%E0%B8%84%E0%B8%B8%E0%B8%93CTR%E0%B9%83%E0%B8%99%E0%B8%9B%E0%B8%B52021', 'tweet': 'None'}, {'name': '#TAEMIN', 'description': None, 'url': 'http://twitter.com/search?q=%23TAEMIN', 'tweet': '130766'}, {'name': '#WayV', 'description': None, 'url': 'http://twitter.com/search?q=%23WayV', 'tweet': '374010'}, {'name': '#HyunBin', 'description': None, 'url': 'http://twitter.com/search?q=%23HyunBin', 'tweet': '60712'}]
    
  7. Search Keyword :

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> search = tw.searchkeywords("tokino_sora")
    >>> trends.users
    >>> [{'name': 'ときのそら🐻11/29.2ndLIVEパラレルタイム!', 'url': 'https://twitter.com/tokino_sora', 'profileurl': 'http://pbs.twimg.com/profile_images/1296434665016844288/2RqmlpoD_normal.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_images/1296434665016844288/2RqmlpoD_normal.jpg', 'screen_name': 'tokino_sora', 'tags': ['tokino_sora', '@tokino_sora', 'tokino', 'sora', 'ときのそら🐻11/29.2ndliveパラレルタイム!']}, {'name': '時野空人', 'url': 'https://twitter.com/TokinoSorahito', 'profileurl': 'http://pbs.twimg.com/profile_images/480667036410863616/yeHCL21U_normal.png', 'bannerurl': 'https://pbs.twimg.com/profile_images/480667036410863616/yeHCL21U_normal.png', 'screen_name': 'TokinoSorahito', 'tags': ['tokinosorahito', '@tokinosorahito', '時野空人']}, {'name': 'Tokino Sora', 'url': 'https://twitter.com/TokinoSora25', 'profileurl': 'http://pbs.twimg.com/profile_images/1320705788218765313/xDbzLV47_normal.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_images/1320705788218765313/xDbzLV47_normal.jpg', 'screen_name': 'TokinoSora25', 'tags': ['tokinosora25', '@tokinosora25', 'tokino', 'sora']}, {'name': 'Neil Qu', 'url': 'https://twitter.com/TokinoSoraFan', 'profileurl': 'http://pbs.twimg.com/profile_images/1222368653758255104/cmvSX51v_normal.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_images/1222368653758255104/cmvSX51v_normal.jpg', 'screen_name': 'TokinoSoraFan', 'tags': ['tokinosorafan', '@tokinosorafan', 'neil', 'qu']}, {'name': "tokino sora's camera stand", 'url': 'https://twitter.com/randomrubeee', 'profileurl': 'http://pbs.twimg.com/profile_images/1325110251356643331/S6ctgUp0_normal.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_images/1325110251356643331/S6ctgUp0_normal.jpg', 'screen_name': 'randomrubeee', 'tags': ['randomrubeee', '@randomrubeee', 'tokino', "sora's", 'camera', 'stand']}, {'name': 'Simp 4 Tokino Sora', 'url': 'https://twitter.com/kalatnieufene', 'profileurl': 'http://pbs.twimg.com/profile_images/1281801965815517185/DDaYI5yo_normal.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_images/1281801965815517185/DDaYI5yo_normal.jpg', 'screen_name': 'kalatnieufene', 'tags': ['kalatnieufene', '@kalatnieufene', 'simp', '4', 'tokino', 'sora']}, {'name': 'sora tokino', 'url': 'https://twitter.com/sora_tokino', 'profileurl': 'http://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png', 'bannerurl': 'https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png', 'screen_name': 'sora_tokino', 'tags': ['sora_tokino', '@sora_tokino', 'sora', 'tokino']}]
    >>> trends.topics
    >>> []
    
  8. Get Profile Example: I want get profile Tokino Sora by ID but i want use proxy not to rate limit (HTTPS Required!) :

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper(proxy_enable=True, proxy_http="xxx.xxx.xxx.xxx:xxxx",proxy_https="xxx.xxx.xxx.xxx:xxxx")
    >>> tw.get_profile(id=880317891249188864).__dict__
    >>> {'id': 880317891249188864, 'name': 'ときのそら�🐻ONSTAG!!', 'screen_name': 'tokino_sora', 'url': 'https://t.co/YVd92xsmZA', 'description': '🎊🎊 nアルバムム『『ON STAE』ビクターエンタテインrトより好評発売中!�🎉11/2ときのそらら2ndLIV『パラレルタイム』開催決定!!��バーチャルアイドルときのそそらら(๑╹╹横アリ目指してがんばりまますす୧(•̀ㅁㅁ•́๑)૭✧️ときのそそら,ときのそら生放放送送,#soraArttion': '日本 東京', 'entities': {'url': {'urls': [{'url': 'https://t.co/YVd92xsmZA', 'expanded_url': 'https://youtube.com/channel/UCp6993wxpyDPHUpavwDFqgg?sub_confirmation=1', 'display_urlocation': '日本 東京', 'entities': {'url': {'urls': [{'url': 'https://t.co/YVd92xsmZA', 'expanded_url': 'https://youtube.com/channel/UCp6993wxpyDPHUpavwDFqgg?sub_confirmation=1', 'display_url': 'youtube.com/channel/UCp699…', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'verifed': False, 'follower': 347116, 'following': 7125, 'extended_url': 'https://t.co/YVd92xsmZA', 'tweet': 20483, 'media': 1950, 'profileurl': 'https://pbs.twimg.com/profile_images/1333357590911152132/WNtw6XJI.jpg', 'bannerurl': 'https://pbs.twimg.com/profile_banners/880317891249188864/1606732197', 'favourites': 110200, 'pinned': False, 'pinned_id': 1335930331111669761, 'profile_color': '1DA1F2', 'createat': datetime.datetime(2017, 6, 29, 6, 51, 55, tzinfo=datetime.timezone.utc)}
    
  9. Get many Profile By ID Example: I want get profile screen_name Tokino Sora and Shirakami Fubuki By ID

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> data = tw.get_profile(ids=[880317891249188864,997786053124616192])
    >>> for data_mem in data :
    >>>     print(data_mem.screen_name)
    >>> tokino_sora
    >>> shirakamifubuki
    
  10. Get many Profile By Name Example: I want get profile ID Tokino Sora and Shirakami Fubuki By Name

    >>> from pytwitterscraper import TwitterScraper
    >>> tw = TwitterScraper()
    >>> data = tw.get_profile(names=["tokino_sora","shirakamifubuki"])
    >>> for data_mem in data :
    >>>     print(data_mem.id)
    >>> 880317891249188864
    >>> 997786053124616192
    

Lastest

I have to thanks for source code from

  • dgnsrekt

I have make some awsome project :3

สุดท้ายนี้... ขอไปด้วยภาพ เมนตัวเองล่ะกัน ปล. มีอีกเมนหนึ่ง

Fubuki F R I E N D

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytwitterscraper-1.3.5.tar.gz (112.3 kB view details)

Uploaded Source

Built Distribution

pytwitterscraper-1.3.5-py3-none-any.whl (114.2 kB view details)

Uploaded Python 3

File details

Details for the file pytwitterscraper-1.3.5.tar.gz.

File metadata

  • Download URL: pytwitterscraper-1.3.5.tar.gz
  • Upload date:
  • Size: 112.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.8

File hashes

Hashes for pytwitterscraper-1.3.5.tar.gz
Algorithm Hash digest
SHA256 f9a33d959153cab0256cc02e68d034720aa1c5d5ab5a47b31b52cec3fca4233d
MD5 675c19a4af1295bbe7046a1992bacbdb
BLAKE2b-256 18d898135e496996f19196dad2db980e2cb6b8f3f8c9851026674522ce78a05f

See more details on using hashes here.

File details

Details for the file pytwitterscraper-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: pytwitterscraper-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 114.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.8

File hashes

Hashes for pytwitterscraper-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 19f67c0484dbabb8424c1450af4344d3970f1f2513318af95f65dd1f9d9d4df8
MD5 5b29c436bd4ecab935d5843caff5f850
BLAKE2b-256 b27b0ffee834a15bddbf22d5739058b52b493f4e13fbd0647c969fb8d1914980

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page