millenniumearl / f95api Goto Github PK
View Code? Open in Web Editor NEWUnofficial Node JS module for scraping F95Zone platform
License: MIT License
Unofficial Node JS module for scraping F95Zone platform
License: MIT License
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near ], sched
Trailing commas in object literals are valid according to the ECMAScript 5 (and ECMAScript 3!) spec. However, IE8 (when not in IE8 document mode) and below will throw an error when it encounters trailing commas in JavaScript. var foo = { bar: "baz", qux: "quux", };
Trailing commas …
There are 21 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/MillenniumEarl/F95API/issue/JS-0134/occurrences/
Describe the bug
Games with "Completed" tags are marked as "Ongoing"
To Reproduce
Steps to reproduce the behavior:
status
propertyAdditional context
Some games where the bug is confirmed:
Describe the bug
The use of Dark Mode BETA
Theme prevents the use of F95API as one of the two ld+json
script tags is not present in the HTML source of the thread's pages. In particular is missing the script containing "@type":"DiscussionForumPosting"
,
To Reproduce
Steps to reproduce the behavior:
White theme
/UI.X.Dark
to Dark Mode BETA
utils > getDateFromString
line 16 because s
is undefined.Expected behavior
There should be no usage differences based on the theme chosen by the user.
Additional context
Since the problem is with the site, a report has been opened on the site at this address.
Describe the bug
On threads with an old template it is not possible to obtain information on the release date or overview because different keywords are used, such as "Story" instead of "Overview" and "Updated" instead of "Release date".
It is also recommended to use Regex in the release dates to get the dates if they are mixed with other information (see example).
Additional context
Some sites where the reported problems occur:
I see this when running the example with the correct credentials. I can confirm that this worked a few days ago when was testing #257. Pretty sure this is caused by the newly added DDOS protection from DDOS-GUARD. Need to debug this further and probably look into bypassing DDOS-GUARD (could be something custom or a lib).
f95api: v2.0.0-beta.12
Node.js: v17.6.0
Windows 10: v19044.1586
PS G:\dev\code\F95API> npm run example
> @millenniumearl/[email protected] example
> npm run build && node --inspect ./dist/example.js
> @millenniumearl/[email protected] prebuild
> node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts
> @millenniumearl/[email protected] build
> npm run prebuild && tsc --project ./
> @millenniumearl/[email protected] prebuild
> node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts
Debugger listening on ws://127.0.0.1:9229/cedbfbf7-6837-4df6-ba8e-3fb0e50b85d3
For help, see: https://nodejs.org/en/docs/inspector
Authenticating...
G:\dev\code\F95API\dist\scripts\network-helper.js:111
throw new errors_1.InvalidF95Token(`Invalid token for auth: ${credentials.token}`);
^
InvalidF95Token [Error]: Invalid token for auth: undefined
at authenticate (G:\dev\code\F95API\dist\scripts\network-helper.js:111:15)
at loginInTheRemotePlatform (G:\dev\code\F95API\dist\scripts\login.js:105:58)
at login (G:\dev\code\F95API\dist\scripts\login.js:47:29)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async authenticate (G:\dev\code\F95API\dist\example.js:72:20)
at async main (G:\dev\code\F95API\dist\example.js:143:9)
Describe the bug
Older games that are described on threads using a different template than the current one have an undefined version
field. This can be caused by the fact that the version is written in bold type or that "Version" is not present in the thread.
Should switch back to get the version from the title?
Additional context
Some threads on which the problem occurred:
Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect, as demonstrated in the following example: js let foo = "hol\a"; // > foo = "hola" let bar = `${foo}\!`; // > bar = "hola!" let baz = /\:/ // same functionality with /:/
Example …
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/MillenniumEarl/F95API/issue/JS-0097/occurrences/
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
chai
, @types/chai
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/codeql-analysis.yml
actions/checkout v3
github/codeql-action v2
github/codeql-action v2
github/codeql-action v2
.github/workflows/coverage.yml
actions/checkout v3
actions/setup-node v3
actions/cache v3.3.2
codecov/codecov-action v3.1.4
package.json
@log4js-node/log4js-api ^1.0.2
await-semaphore ^0.1.3
axios ^1.0.0
axios-cookiejar-support ^4.0.2
axios-retry ^3.2.5
cheerio ^1.0.0-rc.12
iso-datestring-validator ^2.2.2
js-sha256 ^0.10.0
tough-cookie ^4.0.0
@millenniumearl/recaptcha-harvester 1.2.1
@types/chai 4.3.11
@types/chai-as-promised 7.1.8
@types/chai-spies 1.0.6
@types/mocha ^10.0.1
@types/mock-fs 4.13.4
@types/node 18.19.4
@types/rewire 2.5.30
@types/tough-cookie 4.0.5
@typescript-eslint/eslint-plugin 6.17.0
@typescript-eslint/parser 6.17.0
c8 8.0.1
chai 4.3.10
chai-as-promised 7.1.1
chai-spies 1.1.0
dotenv 16.3.1
eslint 8.56.0
eslint-config-prettier 9.1.0
eslint-plugin-prettier 4.2.1
inquirer ^9.0.0
log4js 6.9.1
mocha 10.2.0
mock-fs 5.2.0
prettier 2.8.8
rewire 7.0.0
ts-node 10.9.2
typescript 5.3.3
node >=14.0
Hey mate! I'm going to use your npm package f95api for my project and instead of this I think it will be a good idea to ask you join us with developing our project which is similar to yours. We've got 1 junior frontend, 1 junior+ frontend< 1 ux/ui designer and me node.js senior dev/PM/team lead. If you interested - welcome to my telegram @fpavlik or email [email protected]
Hope to see you soon :3
Describe the bug
When I npm run the example I get the error show in the screenshot
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For the example to work.
Desktop (please complete the following information):
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.