Skip to content

xeia/krc-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

krc-aws

Late in getting notices and lazy in browsing to the cafe?
Or tired of refreshing the cafe every Tuesday for the maintenance notice or every Thursday for the patch notes?
Perhaps its better to save time for raiding and let the crawling do the job!

*not actively maintained

Features

  • Crawls for articles on the cafe every hour via a cron job
  • Store articles into AWS DynamoDB
  • Serverless implementation
  • When a new article is published, sends message to web hooks

Setup

Requirements

  • Golang 1.9
  • AWS Lambda, CloudWatch, DynamoDB
  • Sparta
  • goquery
  • Discord Webhook

Process

  1. Setup requirements and provision the necessary roles/policies on AWS
  2. Clone this repo
  3. Create a .env file with the following fields:
DISCORD_WEBHOOK=<WEBHOOK_URL>
DYNAMODB_DBSTREAM=<DYNAMODB_STREAM_ARN>
  1. Enable/Disable Discord functionalities
  2. Modify the IAM definitions for the functions to those that you have provisioned
  3. Setup a S3 Bucket for code storage and store as $S3_BUCKET
  4. Run the provision command:

go run *.go provision --level info --s3Bucket $S3_BUCKET

  1. Go onto AWS and view the consoles for the relevant functions, making changes as necessary
  2. (Optional) Setup CloudWatch Alarm with a schedule to invoke ScrapeAll

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages