UNPKG
mtg-calls-scraper
Version:
latest (1.0.0)
1.0.0
A simple MTG scraper libray.
github.com/Bastida04/mtg-calls-scraper
Bastida04/mtg-calls-scraper
mtg-calls-scraper
/
index.js
7 lines
•
208 B
JavaScript
View Raw
1
2
3
4
5
6
7
module
.
exports
= {
getCard
:
async
(card) => {
const
http =
new
XMLHttpRequest
(); http.
open
(
"GET"
,
`https://api.scryfall.com/cards/search?q=
${card}
`
,
false
);
return
http.
responseText
; } }