GithubHelp home page GithubHelp logo

twitterdesdebash's Introduction

Twitter Bash Script

Este es un script de Bash que te permite ver y publicar tweets en tu cuenta de Twitter directamente desde la línea de comandos.

Requisitos

Para usar este script, necesitarás:

  • Una cuenta de Twitter
  • Credenciales de API de Twitter para autenticarte con la API de Twitter (puedes obtenerlas en el portal de desarrolladores de Twitter)

Uso

  • Clona este repositorio en tu máquina local.
  • Crea un archivo llamado credentials.txt en el directorio raíz del repositorio y agrega tus credenciales de API de Twitter en el siguiente formato:

consumer_key=<tu-consumer-key>

consumer_secret=<tu-consumer-secret>

access_token=<tu-access-token>

access_secret=<tu-access-secret>

  • Guarda el archivo y ciérralo.
  • Abre una terminal y navega hasta el directorio raíz del repositorio.
  • recuerda que hay que cambiar los permisos al script, con chmod 766 twitter.sh para que te permita ejecutarlo
  • Ejecuta el script # twitter.sh # para ver los 10 tweets más recientes de tu cuenta de Twitter:
./twitter.sh
  • Si deseas publicar un nuevo tweet, proporciona el texto del tweet como un argumento para el script:
./twitter.sh "Este es mi primer tweet desde la línea de comandos."
  • El script publicará el tweet en tu cuenta de Twitter y mostrará el tweet recién publicado.

Notas

  • Este script utiliza la utilidad curl y la herramienta jq para interactuar con la API de Twitter. Si no tienes estas herramientas instaladas en tu sistema, deberás instalarlas antes de usar este script.
  • Este script se proporciona "tal cual" sin garantía de ningún tipo. Úsalo bajo tu propio riesgo. Contribuyendo

Pues ahi esta, este script lo utilizo para mandar alertas de mi laboratorio casero y como simple ejercicio con curl y bash, ojala te pueda servir, si sabes algo de bash, sabras que este comando puedes concatenarlo o mandarle variables $VARIABLE en el parametro para automatizar tareas y eso

twitterdesdebash's People

Contributors

chaoticgeniu5 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.