Code Monkey home page Code Monkey logo

avaliacaopython's Introduction

Avaliação Python - WebGlobal

Lucas Lima Fernandes

Instalação

  1. Criar um ambiente virtual (venv)

python3 -m venv ambiente

  1. Ativar o venv

source ambiente/bin/activate #Linux

source ambiente/Scripts/activate #Windows

  1. Instalar os pacotes

python -m pip install --upgrade pip

pip install -r requirements.txt

Web Crawler - Spider

Rodar o web crawler

scrapy runspider web_crawler.py

Retornou 6.733 linhas com urls Ex.: https://www.drogaraia.com.br/levotiroxina-sodica-50mcg-merck-do-brasil-genericos-30-comprimidos.html https://www.drogaraia.com.br/puran-t4-50-mcg-uso-oral-30-comprimidos.html

Web Scrap

python web_scrap.py

Retornou as 6.733 linhas 1.767 linhas em 156 seg (2,5 min) Obs.: 403 Error, Requests blocked

Ex.: Nome="Água Adicionada de Sais Smartwater com 591ml" Preco=6.45 SKU=53316 Nome="Condicionador Huggies Chá de Camomila com 200ml" Preco=17.99 SKU=52276

avaliacaopython's People

Contributors

lucaslimafernandes avatar

Stargazers

Tiago Ventura 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.