lambda-surf

Automate surfing the web with AWS Lambda and Slack. (by peasey)

Lambda-surf Alternatives

Similar projects and alternatives to lambda-surf
  • puppeteer

    Headless Chrome Node.js API

  • chrome-aws-lambda

    Chromium Binary for AWS Lambda and Google Cloud Functions

  • chrome-aws-lambda-layer

    43 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better alternative or higher similarity.

Posts

Posts where lambda-surf has been mentioned. We have used some of these posts to build our list of alternatives and similar projects.
  • Using AWS Lambda and Slack to find Xbox Series X stock, so you don't have to
    dev.to | 2020-12-28
    A plugin task provider loads the tasks from a specified location and parses the schedule into a more filterable object representation using the schedule parser:
    dev.to | 2020-12-28
    I set up this demo to test the scheduled running of tasks, it consists of 4 tasks that are scheduled to run every 5 minutes, 10 minutes, once an hour and every 2 hours. The tasks don’t do much other than return some text detailing that they ran, but each has a number emoji so I can see if it’s working correctly:
    dev.to | 2020-12-28
    I’ve published the code for the tool on Github with the examples from the demos further on in the post, feel free to use it and adapt it. Below are some notes on the implementation:
    dev.to | 2020-12-28
    Now a chainable task filter can easily filter a list of tasks based on their schedules.
    dev.to | 2020-12-28
    One of the reasons I chose the serverless framework is due to its extensibility, I've previously written about using plugins and lifecycle hooks to add new capabilities. I created a serverless framework plugin that hooks into the before:package:initialize lifecycle hook to load the tasks and build a unique list of schedules, which it adds to the function definition dynamically before the function is packaged and deployed.
    dev.to | 2020-12-28
    The task host is the execution environment that receives the invocation event and is responsible for resolving the invocation schedule. In this case, the host is a Lambda function, and unfortunately the event payload only contains a reference to the CloudWatch event rule ARN that invoked the Lambda, rather than the rule itself. So, I have to jump through some hoops to split the rule ARN to get the rule name using the resource parser, then get the rule with its schedule from the CloudWatch events API before parsing it with the schedule parser. This all comes together in the host to load the tasks and filter them based on the invocation schedule, and if there are any, runs them via the task runner and awaits the results:
    dev.to | 2020-12-28
    This task loads the gossip page, finds all the individual paragraphs and applies a regular expression (rumourMatcher) to filter paragraphs that contain the words Newcastle or Toon:
    dev.to | 2020-12-28
    This task loads the stock availability page for the standalone Xbox Series X, finds all the retailers, extracts the retailer name (or domain) from the alt text of the logo image and the stock availability text:

Stats

Basic lambda-surf repo stats
14
1
4.1
19 days ago

peasey/lambda-surf is an open source project licensed under MIT License which is an OSI approved license.