GithubHelp home page GithubHelp logo

for_square1's Introduction

Requeriments

  • mysql >= 5.7
  • PHP >= 7.2.0
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Installation

composer install
cp .env.example .env
php artisan key:generate
.env file configure mysql server parameters
create MySQL database square1 or copy this sentence
CREATE DATABASE IF NOT EXISTS `square1` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
php artisan migrate

Usage

Use /config/scrap.php file to config categories filter to find items for each category.

Remeber that for each change use php artisan config:cache

For scraping use php artisan scrap and check database and public/img directory.

Be patient in my machine has taken 00:11:17 to scrap

Task Scheduling

you only need to add the following Cron entry to your server.

* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

This Cron will call the Laravel command scheduler every minute.

TODO

  • Create empty Laravel project.
  • Create Schema project.
  • Register and login.
  • first scraping version.
  • Add command scrape.
  • Add scrape cron every day.
  • Only scraping new items. (I not found any 'product_id' in page)
  • Add command scrape:fresh.
  • Add command scrape:refresh.
  • create controller whishlist.
  • CRUD wishlist
  • Select/deselect products from the wishlist if you are logged
  • Add UI with Blade.

for_square1's People

Contributors

takyo avatar dependabot[bot] 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.