Add precommit hook (#664)

* add Sherlock sites
* add precommit hook
This commit is contained in:
fen0s
2022-10-01 13:38:04 +03:00
committed by GitHub
parent d9fd6e0b29
commit a57e5f1d90
3 changed files with 35 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
python3 ./utils/update_site_data.py
+5
View File
@@ -103,6 +103,11 @@ maigret user1 user2 user3 -a
Use `maigret --help` to get full options description. Also options [are documented](https://maigret.readthedocs.io/en/latest/command-line-options.html). Use `maigret --help` to get full options description. Also options [are documented](https://maigret.readthedocs.io/en/latest/command-line-options.html).
## Contributing
Maigret has open-source code, so you may contribute your own sites by adding them to `data.json` file, or bring changes to it's code!
If you want to contribute, don't forget to activate statistics update hook, command for it would look like this: `git config --local core.hooksPath .githooks/`
You should make your git commits from your maigret git repo folder, or else the hook wouldn't find the statistics update script.
## Demo with page parsing and recursive username search ## Demo with page parsing and recursive username search
+28
View File
@@ -33752,6 +33752,27 @@
"webcam" "webcam"
] ]
}, },
"Harvard Scholar": {
"checkType": "status_code",
"url": "https://scholar.harvard.edu/{username}",
"urlMain": "https://scholar.harvard.edu/",
"usernameClaimed": "ousmanekane",
"usernameUnclaimed": "noonewouldeverusethis7"
},
"Google Scholar": {
"checkType": "status_code",
"url": "https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q={username}&btnG=",
"urlMain": "https://scholar.google.com/",
"usernameClaimed": "Blue",
"usernameUnclaimed": "noonewouldeverusethis7"
},
"HuggingFace": {
"checkType": "status_code",
"url": "https://huggingface.co/{username}",
"urlMain": "https://huggingface.co/",
"usernameClaimed": "blue",
"usernameUnclaimed": "noonewouldeverusethis7"
},
"dlive.tv": { "dlive.tv": {
"absenceStrs": [ "absenceStrs": [
"Channel not found" "Channel not found"
@@ -33771,6 +33792,13 @@
"streaming" "streaming"
] ]
}, },
"ManifoldMarkets": {
"checkType": "status_code",
"url": "https://manifold.markets/{username}",
"urlMain": "https://manifold.markets/",
"usernameClaimed": "ManifoldMarkets",
"usernameUnclaimed": "noonewouldeverusethis7"
},
"instaprofi.ru": { "instaprofi.ru": {
"absenceStrs": [ "absenceStrs": [
"/static/img/pages/profile/nobody.jpg" "/static/img/pages/profile/nobody.jpg"