Coder Social home page Coder Social logo

ads-parser's Introduction

How to run via docker

If running first time, follow these steps:

cd src

cp .env.example .env

Open .env file in src directory. Change DB_USERNAME to anything else than root. Put password. Save it.

cd ../docker

docker-compose --env-file ../src/.env build app

docker-compose --env-file ../src/.env up -d

Either ssh to ads-parser-app container or run it through docker-compose:

docker-compose exec app rm -rf vendor composer.lock

docker-compose exec app composer install

docker-compose exec app php artisan key:generate

docker-compose exec app php artisan migrate

docker-compose exec app php artisan db:seed

docker-compose exec app php artisan schedule:work

Here you go!

ads-parser's People

Contributors

dependabot[bot] avatar frddl avatar mirivhbv avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ads-parser's Issues

proxy list

proxy feature should be built in order not to get the ip banned.
provider should use list of available proxies from config and attach them to Guzzle

to check: proxy6.net

user-agent modifier

currently, guzzle sends a user agent such as Guzzle/4.0 curl/7.21.4 PHP/$version
provider should randomly pick a user agent from list in config and use it for guzzle headers

the list to use

notification providers

add email sender information and style the email blade and test:
(to be used: yandex - is free)

1. telegram
2. email

currency converter

config/parsers.php, for each site:

convert_currency = true
currency_properties = [
   'usd' => [
      'selector' => 'div.price_cur'
      'parse_regex' => 'r"\$[^ ]+"',
      'matches' => ['usd', 'USD', '$']
   ],
]

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.