GithubHelp home page GithubHelp logo

louispawaon / sakugabooru-bot Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 52 KB

๐Ÿค– SakugaBot is a Twitter Bot dedicated for sakuga animation

Home Page: https://twitter.com/BotSakuga

License: MIT License

Python 100.00%
anime automation scripting python3

sakugabooru-bot's Introduction

SakugaBot is a Twitter bot dedicated for sakuga animation and its glorious beauty. I've seen countless Anime Twitter Accounts posting images and videos related to anime but I haven't seen any attempts of producing a bot that would regularly post sakuga videos on Twitter, other than @randomsakuga, one of the biggest anime accounts in social media. So I took it as a challenge for myself to recreate a bot that would handle such capabilities.

All medias posted on SakugaBot are taken from SAKUGABOORU, one of the biggest booru sites across the Internet.

to be released next week

Updates

UPDATE v.1.0.0: 
  - Initial Release

UPDATE v.1.0.1: 
  - Removed the number of posts related to the animator
  - Added a new feature for the listed anime title given by SakugaBooru


Tools and Libraries

- Python
- Requests
- OS Library
- Time Library
- Pybooru
- Tweepy
- BeautifulSoup


Clone this Repository

git clone https://github.com/tremor6916/sakugabooru-bot.git

You need to create your own token.txt with your appropriate API Keys that you got from Twitter.


FAQ

  1. Tweepy gives out an Invalid file type for image: video/mp4 error, what should I do?

    Tweepy has merged a pull request with regards to uploading video/mp4 files using their library, but they haven't released an official release up to this day. You may want to head to the Official GitHub Repository of Tweepy and follow the Installation Instructions below for you to have the latest development version.



If any issues arise, you may post a new issue here. This is still a work in progress and will keep on updating this up to its optimal state.

sakugabooru-bot's People

Contributors

louispawaon avatar dependabot[bot] avatar

Stargazers

Jay Tan avatar Viver Val Bungag avatar

Watchers

 avatar

sakugabooru-bot's Issues

401 Unauthorized Error

When I attempt to test tweet using the script it sends out a 401 Unauthorized Error. I have looked upon it and checked the general solution of resetting my system clock yet after doing such the problem persists.

try:
    auth = tweepy.OAuthHandler(consumer_key,consumer_secret)
    auth.set_access_token(access_token,access_token_secret)
    api = tweepy.API(auth)
    api.update_status('test tweet')
except Exception as e:
    print (e) #Prints a 401 Unauthorized Error

403 Forbidden Error

It seems that Tweepy does not recognize authentication from my API keys and sends out a 403 Forbidden error whenever I try to attempt to run the script.

try:
    media_list=[]
    for dirpath, dirnames, files in os.walk('C:/Users/Admin/Documents/PersonalFiles/Repositories/sakugabooru-video-files'):
        for f in files:
            media_list.append(os.path.join(dirpath,f))
    media = media_list[0]
    api.media_upload(media) 
except Exception as e:
    print(e) #Prints a 403 Forbidden Error 

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.