GithubHelp home page GithubHelp logo

spekulatius / faasd-phpscraper Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 26 KB

openfaas/faasd wrapper for PHPScraper

Home Page: https://phpscraper.de

License: GNU General Public License v3.0

Shell 30.13% PHP 69.87%
faasd openfaas phpscraper php-faas function-as-a-service

faasd-phpscraper's Introduction

PHP Scraper as a Function

A simple OpenFaaS/faasd wrapper around PHP Scraper. Essentially turning your scraper into a function.

Usage

  1. Fork and clone the fork.
  2. Adjust the stack.yml file with your docker hub name.
  3. Change the handler to your needs.
  4. faas-cli up --gateway http://faasd.somewhere.com:8080.

How to generate the secret?

  1. Create a secret:

    echo $(head -c 16 /dev/urandom | shasum | cut -d "-" -f1) > token.txt
  2. Store it on the server:

    faas-cli secret create phpscraper-token --from-file token.txt --gateway http://yourfaasd.somewhere.com:8080
  3. Deploy as usual:

    faas-cli up --gateway http://yourfaasd.somewhere.com:8080

How to develop with PHPScraper?

For more information on core functionality of PHPScraper check the documentation. The tests and examples can also help understanding it better.

faasd-phpscraper's People

Contributors

spekulatius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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