licavalentin / audiobookbay Goto Github PK
View Code? Open in Web Editor NEW✨🎧AudioBookBay Scraper🎧✨
Home Page: https://npmjs.com/package/audiobookbay
✨🎧AudioBookBay Scraper🎧✨
Home Page: https://npmjs.com/package/audiobookbay
Hello,
i just installed the library, i calling the explore endpoint, but i get an error
/Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js:17
const node_fetch_1 = __importDefault(require("node-fetch"));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/node_modules/node-fetch/src/index.js from /Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js not supported.
Instead change the require of index.js in /Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js:17:38)
at Object. (/Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/index.js:16:28)
at async Promise.all (index 0) {
code: 'ERR_REQUIRE_ESM'
}
how can this be fixed, I'm new to this.
Thanks.
Hello,
After changing the base URL to audibookbay.is, the magnet links are all returned as undefined
.
Is this no longer functional?
Thanks.
Categories are joined using non-breaking spaces. Can update this split to use a different character code, and it will leave the categories with spaces intact
.split(String.fromCharCode(160))
Whenever I try to do a search it crashes:
TypeError: Cannot read property 'replace' of undefined
at Node.<anonymous> (/docker/audiobookbay/audiobookbay/controller/searchAudiobook.js:32:19)
at initialize.exports.each (/docker/audiobookbay/audiobookbay/node_modules/cheerio/lib/api/traversing.js:300:24)
at Request._callback (/docker/audiobookbay/audiobookbay/controller/searchAudiobook.js:21:38)
at Request.self.callback (/docker/audiobookbay/audiobookbay/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.<anonymous> (/docker/audiobookbay/audiobookbay/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage.<anonymous> (/docker/audiobookbay/audiobookbay/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
root@helios:/docker/audiobookbay/audiobookbay#
root@helios:/docker/audiobookbay/audiobookbay#
root@helios:/docker/audiobookbay/audiobookbay# node app.js
/docker/audiobookbay/audiobookbay/controller/searchAudiobook.js:32
.replace("/audio-books/", "/audiobook/");
^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.