jannchie / biliob_backend Goto Github PK
View Code? Open in Web Editor NEWbilibili data acquisition and analysis.
License: MIT License
bilibili data acquisition and analysis.
License: MIT License
Error 500 when user is not exist
User's records save the user's operations result. It is necessary because users are able to launch tracking tasks asynchronously, which has the potential to fail.
By recording the operations of users, we can easily know how users spend credits and whether users execute the tasks correctly.
With the search function in https://www.biliob.com/author
If I type Lex
,
I would see LexBurner and 萧忆情Alex, which name contains lex
But if I type 神楽めあ
https://www.biliob.com/api/author?page=0&text=神楽めあ&sort=0
There is no 神楽めあOfficial
But if I type 神楽めあOfficial
https://www.biliob.com/api/author?page=0&text=神楽めあofficial&sort=0
There she is...
It seems to be the problem of めあ
If I type 神楽
it works, めあ
it does not.
https://www.biliob.com/api/author?page=0&text=神楽&sort=0
And with 神楽
it will also show me 神樂めあOfficiaI
, which is not the same characters?
I believe this is not expected?
Front end search sample
let authors = {
...Array(10000)
.fill()
.map(() => String(Math.random()))
}
let search = string => {
let keys = string.split('')
let result = Object.keys(authors)
.map(mid => ({ mid, index: 0, uname: authors[mid] }))
keys.map(key => {
result = result
.map(object => {
return ({
...object,
index: object.uname.indexOf(key, object.index) + 1
})
})
.filter(({ index }) => index)
})
return result
}
the Data of author or video could be very big. Then it will slow down the speed of client loading data.
So the backend should filter the data, reduce the number of being displayed data.
When add a new author or video, execute the crawler immediately.
Some author or video should be tracked more frequently.
The backend should handle the request and schedule the tracking task.
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.