yffenim / serverless_disboard_scraper

serverless backend using microservices architecture for discord server search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 92.5%Language:Ruby 7.5%