Giter Site home page Giter Site logo

cuducos / bot-followers Goto Github PK

View Code? Open in Web Editor NEW
115.0 13.0 10.0 168 KB

🍊 Find out how many bots follow any given Twitter acount

License: GNU General Public License v3.0

Python 81.97% Dockerfile 0.91% HTML 17.13%
social-network-analysis bots twitter social-media-analysis

bot-followers's People

Contributors

11808s8 avatar auyer avatar cuducos avatar dependabot[bot] avatar eliezerfb avatar ffreitasalves avatar g4brielvs avatar woliveiras avatar x86girl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bot-followers's Issues

Enhance Django Admin integration

The way I integrated the app in Django Admin is too hacky and can be improved in several ways:

  • Use Django Admin action to re-start/pause jobs (instead of hardcoded buttons pointing to non-admin URLs)
  • Customize the Django Admin add job (so we can remove the hardcoded form on the bottom of the screen)

We can minimize Django Admin template customization this way, and considerably enhance maintainability.

Adapt error message to z-score settings

In the admin template, there's a fixed message regarding the error:

<small>* Errors for 95% confidence.</small>

This confidence assumes a z-score of 1.96. But this value can be easily changed:

Z_SCORE = config("Z_SCORE", default="1.96", cast=float) # default 0.95 confidence

Thus we need to adapt the template message to other z-scores.

I don't think we need a complicated math to beging with. Just a dictionary {1.96: '95%'} would be enough and we just don't show the error/confidence message if the z-score in use is not on the dictionary.

Error ao subir o servidor localmente: No directory at: /web/staticfiles/

Quando tento subir o servidor usando o comando docker-compose run --rm django um alerta aparece indicando a ausencia da pasta /web/staticfiles conforme abaixo.

System check identified no issues (0 silenced).
December 09, 2019 - 20:52:50
Django version 3.0, using settings 'web.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
/usr/local/lib/python3.8/site-packages/whitenoise/base.py:116: UserWarning: No directory at: /web/staticfiles/
  warnings.warn(u"No directory at: {}".format(root))

Quando tento acessar o endereço http://localhost:8000 a resposta é como se o servidor não estivesse rodando (Unable to connect)

Se eu uso o comando docker-compose up django o mesmo alerta é exibido, mas quando tento acessar a página recebo como resposta um 404.

rodei as migrations e segui o readme. Não sei se o alerta é responsavel pelo erro, mas esse é o passo a passo que testei aqui.

Replace None with empty string

In the report, inside Django Admin, when there's no data to show, None in being converted do 'None':

image

I think an empty string ('') would give us a better UI.

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.