Git Product home page Git Product logo

starlord-bot's Introduction

StarLordBot

A simple bot written in python to get Nasa's APOD images

Requirements

Python 3.7 or greater.

How to use

Use StarLord is very simple, just follow this lines :)

First install dependencies

$ pip3 install beautifulsoup4 requests loguru

Now, put this lines inside a file of your choice, and you are ready to go!

from bot.StarLordBot import StarLordBot

starLord = StarLordBot()

starLord.fetchApodArchive()

starLord.getListOfLinks(15)

starLord.getAllPictures()

Or you can just call example.py :)

$ python example.py

Docker

If you wish, you can run StarLordBot inside a Docker container

Build Python image with StarLordBot's dependencies

# docker build -t starlord-bot /path/to/Dockerfile

Run the container

# docker run --rm -it -v "$PWD":/app starlord-bot python /app/example.py

Contribute!

Want to help? Clone this repo and open your PR!

This bot is a very basic piece of code, and it's, by no means, the best and the cleanest way to implement a bot, but feel free to use and redistribute any way you want.

starlord-bot's People

Contributors

simonardejr avatar

Stargazers

Sérgio Mafra avatar

Watchers

 avatar

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.