Git Product home page Git Product logo

io-code-source's Introduction

io-code-source

screencapture-127-0-0-1-5000-resultats-lauweded-2021-10-27-15_38_40

GitHub open issues MIT License

Getting Started

Activate the Virtual Environment

On macOS

$ source venv\Scripts\activate

On PowerShell

$ venv\Scripts\activate

Run this command to create your own Virtual Environment

$ py -3 -m venv venv     

Install all the packages

pip install Flask
pip install beautifulsoup4
pip install -U selenium
pip install webdriver-manager
pip install lxml
pip install python-dotenv

Create your .env file

A .env file is needed because you need to be connected on your instagram account to be able to visite other people account. It should be created on the same folder then the file app.py and it should contain ;

INSTA_USERNAME=<your-username>
INSTA_PASSWORD=<your-password>

Launch Flask

$ flask run

If you have error messages, try to run those commands first, then retry :

$ export FLASK_APP=app
$ export FLASK_ENV=development

Don't hesitate to read this article if you need help

Packages

  • Flask
  • Beautiful soup 4
  • Selenium
  • webdriver_manager
  • lxml

Structure

  • The folders static and templates contains all the client-side files.
  • The file app.py contains the main script of the application. It is from this file that Flask runs.
  • The file commands.py contains the different commands for the Arduino. WIP
  • The file results.html contains temporarily the HTML page that the script is scraping.
  • The file scraping.py is the script test for scraping a page.

Troubleshooting

If you have problems with virtual environment or file problems, please try first to delete the env folder, then follow this guide : Installing packages using pip and virtual environments

io-code-source's People

Contributors

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