X (Twitter) Post Bot with Images using Python (+Tweepy)

Sdílet
Vložit
  • čas přidán 4. 08. 2023
  • X (Twitter) Account: / biblical_art
    Bot Code: github.com/wiggam/x-twitter-bot
    Database Code: github.com/wiggam/x-bot-database
    Google Custom Search JSON API: developers.google.com/custom-...

Komentáře • 29

  • @mscrimi7881
    @mscrimi7881 Před 8 měsíci +1

    this is so powerful and helpful , means alot thank you😇

  • @OrcaInvader
    @OrcaInvader Před 6 měsíci

    Thank you very much, now I will be able to post orca pictures on the hour! Huzzah!

  • @ahmetkeremsozen8294
    @ahmetkeremsozen8294 Před 10 měsíci +1

    great one, learned a lot

  • @janjakruso
    @janjakruso Před 6 měsíci

    thank you George

  • @Riskninjaz
    @Riskninjaz Před 3 měsíci

    Wild!

  • @thedonpluto
    @thedonpluto Před 10 měsíci +2

    Excellent work George! I am trying to create something similar but having trouble with the cloud part

    • @georgewiggam4292
      @georgewiggam4292  Před 10 měsíci +1

      Thank you! Do you mean putting it on a remote server? I used scp to send the files from my personal computer to the remote server. This required only one command to send the entire project. For example : scp {the name of the folder} root@{ip address of the server}:{file path on the remote server, destination} : there are some great tutorials available at to follow. Hopefully, this helps.

  • @paparaoveeragandham284
    @paparaoveeragandham284 Před 2 měsíci

    nice one want to see you pn more active on videos making. better to do things on crypto utilities

  • @fvdmaster
    @fvdmaster Před 10 měsíci +1

    cool

  • @homeoffice3524
    @homeoffice3524 Před 7 měsíci

    Good tutorial when you cut out all virtual assistant crap it's actually useful to learn.

  • @andreieminovici1894
    @andreieminovici1894 Před 4 měsíci

    Can you post tweets longer than 280 characters? I have paid basic plan which allows me to normally post up to 25000 characters long but from the api I still cannot go over 280

  • @alelenosakhare5114
    @alelenosakhare5114 Před 3 měsíci

    I'm sorry, but what Database did you use.?

  • @syauqihazimi226
    @syauqihazimi226 Před 10 měsíci +1

    hello i'm syauqi from indonesia, can this source code be used to crawl sentiment analysis data? because I'm doing my thesis research

    • @georgewiggam4292
      @georgewiggam4292  Před 10 měsíci +1

      Hello, this code can be used to connect to a twitter developer account. This code only posts tweets with images, if you are looking to scrape data from Twitter, check out the tweepy documentation at docs.tweepy.org/en/stable/index.html > I would then look at: TWITTER API V2 REFERENCE > Client > then scroll down to see all the endpoints that are available to you and if any of those can help with your research. I also suggest using ChatGPT to find the best way to scrape the web, it may be another library unless you are specifically looking at twitter.

    • @syauqihazimi226
      @syauqihazimi226 Před 10 měsíci

      @@georgewiggam4292 thanks for answering and giving advice, I'll give it a try

  • @mikerowaveoven509
    @mikerowaveoven509 Před 11 měsíci

    I got an error: tweepy.errors.Forbidden: 403 Forbidden. Do I have to purchase some kind of Twitter API plan, to be ale to post tweets? Or is the problem somewhere else ?

    • @georgewiggam4292
      @georgewiggam4292  Před 11 měsíci

      Make sure your twitter developer app has enable read and write permissions. When you create a twitter developer app, the default is read only. Go to your app > User authentication settings > Edit button > then select read and write under app permissions. After you do that make sure to regenerate your keys and update them in your script, your old keys will still only have read permission.

    • @georgewiggam4292
      @georgewiggam4292  Před 11 měsíci

      For your second question, everything used in the video is free. 👍

  • @Aetheries
    @Aetheries Před 10 měsíci

    Hi, Where can I contact you ?

    • @georgewiggam4292
      @georgewiggam4292  Před 10 měsíci

      hello, dm the twitter account and I will respond there. Thanks,

  • @danielolarte9708
    @danielolarte9708 Před 9 měsíci

    Do you have the free version of X?

    • @georgewiggam4292
      @georgewiggam4292  Před 9 měsíci +1

      As of the time of writing this comment, the developer account is free and the bot is still running. You have the option to upgrade a developer account, but the free one offers the ability to post a couple times a day.

    • @GrenadeFNBR
      @GrenadeFNBR Před 2 měsíci

      ​@@georgewiggam4292images too?

  • @brentking5298
    @brentking5298 Před 5 měsíci

    For my case, I met "tweepy.errors.Forbidden: 403 Forbidden" while I using "media = client_v1.simple_upload(filename=media_path)", looks it can not support media upload now.

    • @brentking5298
      @brentking5298 Před 5 měsíci

      I tried updated all keys, it's worked, good job & thanks a lot.

  • @user-yy2hc4rg9p
    @user-yy2hc4rg9p Před 5 měsíci

    can i contact you