Skip to main content

Este projeto permite a leitura de tweets via RSS utilizando o RSSHub

Project description

RSSHub Twitter Reader

Este projeto permite a leitura de tweets via RSS utilizando o RSSHub.

Funcionalidades

  • Captura tweets de um usuário do X (antigo Twitter) via RSSHub.
  • Remove caracteres especiais.
  • Calcula um hash MD5 do título para evitar tweets duplicados (coluna: md5_hash_tweet)
  • Filtra tweets com base em palavras-chave fornecidas.
  • Obtém informações do canal, incluindo nome, descrição, link e última atualização.

Instalação

pip install rsshub-twitter-reader

Como Usar

from rsshub_twitter_reader import RSSHubTwitterReader

rss_reader = RSSHubTwitterReader('einvestidor')
tweets = rss_reader.fetch_rss()
print(tweets)

# Filtrar tweets com palavras-chave
filtered_tweets = rss_reader.filter(['MRVE3', 'VBBR3'])
print(filtered_tweets)

# Obter informações do canal
channel_info = rss_reader.get_info()
print(channel_info)

Dependências

  • requests
  • pandas
  • lxml

📜 License

This project is licensed under the MIT License.


🌟 Feel free to contribute and improve this project!

Final Notes

This project was developed as an educational tool. Feel free to use!

Thank You for Your Support! 🌟

We hope you find our services helpful and enjoyable! If you feel like showing some extra appreciation, why not buy us a coffee?

🍵 Your support not only energizes our team but also helps us keep improving what we do.

To make a small contribution, you can send us a coffee's worth of USDT or Brazilian Instant Payment (PIX) to our QR code. Every coffee counts and keeps us brewing more ideas!

Here's how you can send a USDT coffee

Coffee QR Code

or send USDT to address:

0x3db4d1dd10b60c278f27bd1b2e2bd888d0f99f85
  1. Scan the QR Code: Open your crypto wallet and scan our USDT QR code.
  2. Enter the amount: The cost of a coffee - usually around $3 to $5.
  3. Send your support: Hit send and make our day!

Here's how you can send a PIX coffee

Coffee QR Code

  1. Scan the QR Code: Open your bank account app and scan our PIX QR code.
  2. Enter the amount: The cost of a coffee - usually around $3 to $5.
  3. Send your support: Hit send and make our day!

PIX is a digital payment system in Brazil that allows instant payments 24/7 via mobile phones. If you found this project helpful, please consider buying me a coffee.

Thank you once again for your incredible support and for being a part of our community. Your contribution fuels our passion and commitment.

Author

Flavio Lopes Spreading practical data knowledge for decision making.

Contact

Questions, suggestions, or improvements? Contact me or contribute directly to the repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rsshub_twitter_reader-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rsshub_twitter_reader-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file rsshub_twitter_reader-0.1.0.tar.gz.

File metadata

  • Download URL: rsshub_twitter_reader-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for rsshub_twitter_reader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2a7bcf6c84f1e7eb5eceecde185edfaea41eedcf2aaece91d8f6ba69cd1da7c5
MD5 88a3a7dd01eafb57e2fdd65d9adb3e84
BLAKE2b-256 238931132bd7c2b17f825dba3ab9cba2a1dafba4eb0c59d1446bb8b7ca437970

See more details on using hashes here.

File details

Details for the file rsshub_twitter_reader-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rsshub_twitter_reader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0214a67c5bdef8723108e3bbb121d4125b09e88ff68ef146f324a26af17f4999
MD5 fdfe87da11814bf4495571f68aafc0c9
BLAKE2b-256 bcbfa8124b0b126e6ea42a8b4a2617a8f1144319ac8fc80075a886d4b0c839d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page