Skip to content

Commit

Permalink
feat(reacherhq#289): add haveibeenpwned check
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-reynaud committed Jan 13, 2023
1 parent a4fe57e commit 61cf447
Show file tree
Hide file tree
Showing 14 changed files with 1,148 additions and 11 deletions.
20 changes: 20 additions & 0 deletions .docker/api-fetcher/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Api-fetcher

This is a simple tool to fetch an url given. It will return the response body in the stdout.

It bypasses Cloudflare anti-bot protection.

## Usage in development

```bash
npm install
npm run start <url>
```

## Usage in production

Use `node` command to not have to install `npm`.

```bash
node main.js <url>
```
11 changes: 11 additions & 0 deletions .docker/api-fetcher/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { gotScraping } = require('got-scraping');

const url = process.argv[2];
if (!url) {
console.error('Please provide an email');
process.exit(1);
}

gotScraping
.get(url)
.then( ({ body }) => console.log(body))
Loading

0 comments on commit 61cf447

Please sign in to comment.