https://github.com/userjhansen/rust-analyzer
https://github.com/userjhansen/rust-analyzer
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/userjhansen/rust-analyzer
- Owner: UserJHansen
- Created: 2023-02-24T02:04:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-28T00:18:23.000Z (about 3 years ago)
- Last Synced: 2025-02-28T02:21:46.257Z (over 1 year ago)
- Language: Rust
- Size: 13.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting the data
To get the data.json file you can put this js snippet in the browser, on the Mangasee website
```
var output = {},
error_count = 0,
i = 0,
parsedOut = [];
fetch('https://mangasee123.com/_search.php').then((r) => r.json()).then((r) => {
r.map((f) => f.i).forEach((n) => {
setTimeout(() => fetch('https://mangasee123.com/manga/' + n).then(r => r.text()).then(t => {
if (/vm.IndexName = ([\S\s]*)vm\.Sub/.exec(t) == null) {
error_count++;
return;
}
output[n] = []
output[n][0] = /vm.IndexName = ([\S\s]*)vm\.Sub/.exec(t)[1]
fetch('https://mangasee123.com/manga/comment.get.php', {
method: "POST",
body: JSON.stringify({
IndexName: n,
})
}).then(r => r.json()).then(j => output[n][1] = j.val)
}), ++i * 35)
})
setTimeout(() => {
for (name in output) {
parsedOut.push({
name,
chapters: JSON.parse(/vm.Chapters = (.*?);\r\n\t\t\t/.exec(output[name][0])[1]).map(c => ({
chap_no: parseInt(c.Chapter),
date: Math.floor(Date.parse(c.Date)/1000/60)
})),
subs: parseInt(/vm.NumSubs = (.*?);/.exec(output[name])[1]),
comments: output[name][1].flatMap((c) => [...c.Replies.map(r => ({
date: Math.floor(Date.parse(r.TimeCommented)/1000/60),
id: parseInt(r.CommentID)
})),
{
id: parseInt(c.CommentID),
date: Math.floor(Date.parse(c.TimeCommented)/1000/60)
}])
})
}
console.log(parsedOut);
}, ++i * 35+2000)
})
```
## Findings
Using the inbuilt settings over the year of 2022 you get:
```
Total comments: 95042
Scanning for 365 days
Score: 1
Found Comments: 95042
Scanned Mangas: 85900944
Average scans to find a comment: 903
Average diff between post time and scan time per comment: 7 minutes
```
To have accurate scanning and to reach these results you have to have the capability to scan at least
180 mangas per minute, any less and you will not be able to keep scanning in a reasonable time frame.