Coder Social home page Coder Social logo

Comments (4)

loby66 avatar loby66 commented on June 7, 2024 1

install python 3.11

from twitter-api-client.

krruzic avatar krruzic commented on June 7, 2024
  1. Yes that's how you fill it in
  2. debug needs to be a boolean, True or False the readme is outdated I think, pass it in after save and make sure you're using the latest version of the package
  3. You're supposed to insert the ID of a user there. You can get the ID of a user through scraper.users([user_screen_name]) where user_screen_name is your @.
import base64
user_screen_name = 'JohnDoe'
user_info = scraper.users([user_screen_name])
user_id_b64 = user_info[0][0]["data"]["user"]["result"]["id"]
user_id = int(base64.b64decode(user_id_b64).decode().split(":")[1])

# get likes for user_id
scraper.likes([user_id])

There isn't really any documentation I recommend reading through the code.

from twitter-api-client.

SakiSakiSakiSakiSaki avatar SakiSakiSakiSakiSaki commented on June 7, 2024

debug needs to be a boolean, True or False the readme is outdated I think, pass it in after save

So it seems like scraper = Scraper(email, username, password, save = True, debug = False) gives the error TypeError: __init__() got an unexpected keyword argument 'save'


make sure you're using the latest version of the package

So I uninstalled and reinstalled twitter-api-client, but the version in my pip still says 0.4.7, while the one in pypi says it's in 0.7.9.

I tried pip install twitter-api-client==0.7.9, and received the error

ERROR: Could not find a version that satisfies the requirement twitter-api-client==0.7.9 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.6, 0.4.7)
ERROR: No matching distribution found for twitter-api-client==0.7.9

from twitter-api-client.

lucasg1 avatar lucasg1 commented on June 7, 2024

According to https://pypi.org/project/twitter-api-client/:

twitter-api-client requires: Python >=3.10.10

from twitter-api-client.

Related Issues (20)

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.