Skip to content

serverless backend using microservices architecture for discord server search

Notifications You must be signed in to change notification settings

yffenim/serverless_disboard_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iteration I of Backend for Disboard Server Search

This has been abandoned bc the scraper does not work when run from an AWS IP range to discord.

If you can resolve this issue, please respond here: https://stackoverflow.com/questions/72722566/aws-lambda-python-webscraping-unable-to-bypass-cloudfare-anti-bots-from-aws

RoadMap

  • webscraper lambda
  • microservice lambda as search API
  • microservice lambda as API to handle DynamoDB interaction
  • minimalist react front end to demo dynamic search function based on inclusion and exlusion tags

Usage: scraper lamba

Cloud: WIP

Using Postman, curl, or your own webserver, send a POST request with a JSON body object containing your search tag.

https://oxngnmwe2h.execute-api.us-east-1.amazonaws.com/scraper_lambda

Search Tag:

{ 
	"tag": "YOUR_TAG"
}

For example:

curl --header "Content-Type: text/plain" -d "{\"a\":16,\"b\":12}" https://oxngnmwe2h.execute-api.us-east-1.amazonaws.com/scraper_lambda

Locally:

Prerequisites:

  • Python3 (brew install python to install, python3 --version to verify)
  • Pipenv (pip install pipenv)

Clone this repo:

git clone git@github.com:yffenim/discord_server_finder.git

Install dependencies after entering pipenv environment in /scraper_lambda/ directory:

pipenv shell
pipenv install

Run the app:

python /scraper_lambda/scrape_local.py

About

serverless backend using microservices architecture for discord server search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages