Skip to content

Commit

Permalink
Replace all references to metadataapi (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maista6969 authored Mar 6, 2024
1 parent 7fb70a5 commit a8d18c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions beginner-guides/guide-to-scraping.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Tags are not created automatically. You need to click `+` icon near the tag name
<br/><br/>

{:style="counter-reset:none"}
1. First step is to make an account at [metadataapi.net](https://metadataapi.net/register){:target="_blank"} which is ThePornDB's website. With your account created, navigate to your [API Tokens](https://metadataapi.net/user/api-tokens){:target="_blank"} page. Type "stash" as your token's name (or whatever you'd prefer), make sure the "read" permission is checked (you don't need the others), and click the "Create" button. A pop-up will display your newly created token. **Save your API token somewhere so you can find it later!**. It will not be visible on ThePornDB's website after you close the pop-up. If you lose it, you may need to create a new one and repeat this entire setup process. This can be done in a password manager, notes app, or a well-placed text file.
1. First step is to make an account at [theporndb.net](https://theporndb.net/register){:target="_blank"}. With your account created, navigate to your [API Tokens](https://theporndb.net/user/api-tokens){:target="_blank"} page. Type "stash" as your token's name (or whatever you'd prefer), make sure the "read" permission is checked (you don't need the others), and click the "Create" button. A pop-up will display your newly created token. **Save your API token somewhere so you can find it later!**. It will not be visible on ThePornDB's website after you close the pop-up. If you lose it, you may need to create a new one and repeat this entire setup process. This can be done in a password manager, notes app, or a well-placed text file.

![How to create an API token on ThePornDB](/assets/beginner-guides/create-tpdb-token.jpg)
<br/><br/>
Expand All @@ -85,7 +85,7 @@ Tags are not created automatically. You need to click `+` icon near the tag name
1. Go to the **Settings** page in Stash ([http://localhost:9999/settings](http://localhost:9999/settings){:target="_blank"} by default), click **Metadata Providers** on the left side and find **Stash-box Endpoints** at the top.

{:style="counter-reset:none"}
1. Click **Add** and fill out the form that pops up: paste in your API key you created earlier amd enter `ThePornDB` (or anything else you'd like, like TPDB or Metadataapi.net) for **Name**, and enter `https://metadataapi.net/graphql` as the **GraphQL endpoint**.
1. Click **Add** and fill out the form that pops up: paste in your API key you created earlier amd enter `ThePornDB` (or anything else you'd like, like TPDB) for **Name**, and enter `https://theporndb.net/graphql` as the **GraphQL endpoint**.

{:style="counter-reset:none"}
1. Click **Test Credentials** to make sure you've entered everything correctly, then click **Confirm**.
Expand Down
12 changes: 6 additions & 6 deletions in-app-manual/scraping/scraperdevelopment.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ For example:
sceneByFragment:
action: scrapeJson
scraper: sceneQueryScraper
queryURL: https://metadataapi.net/api/scenes?parse={filename}&limit=1
queryURL: https://theporndb.net/api/scenes?parse={filename}&limit=1
queryURLReplace:
filename:
- regex: <some regex>
Expand Down Expand Up @@ -697,21 +697,21 @@ A performer and scene scraper for ThePornDB is shown below:
name: ThePornDB
performerByName:
action: scrapeJson
queryURL: https://api.metadataapi.net/performers?q={}
queryURL: https://api.theporndb.net/performers?q={}
scraper: performerSearch
performerByURL:
- action: scrapeJson
url:
- https://api.metadataapi.net/performers/
- https://api.theporndb.net/performers/
scraper: performerScraper
sceneByURL:
- action: scrapeJson
url:
- https://api.metadataapi.net/scenes/
- https://api.theporndb.net/scenes/
scraper: sceneScraper
sceneByFragment:
action: scrapeJson
queryURL: https://api.metadataapi.net/scenes?parse={filename}&hash={oshash}&limit=1
queryURL: https://api.theporndb.net/scenes?parse={filename}&hash={oshash}&limit=1
scraper: sceneQueryScraper
queryURLReplace:
filename:
Expand All @@ -732,7 +732,7 @@ jsonScrapers:
postProcess:
- replace:
- regex: ^
with: https://api.metadataapi.net/performers/
with: https://api.theporndb.net/performers/
performerScraper:
common:
Expand Down

0 comments on commit a8d18c9

Please sign in to comment.