Skip to content

Commit a57e5f1

Browse files
authored
Add precommit hook (soxoj#664)
* add Sherlock sites * add precommit hook
1 parent d9fd6e0 commit a57e5f1

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.githooks/pre-commit

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
python3 ./utils/update_site_data.py

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ maigret user1 user2 user3 -a
103103

104104
Use `maigret --help` to get full options description. Also options [are documented](https://maigret.readthedocs.io/en/latest/command-line-options.html).
105105

106+
## Contributing
107+
108+
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!
109+
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/`
110+
You should make your git commits from your maigret git repo folder, or else the hook wouldn't find the statistics update script.
106111

107112
## Demo with page parsing and recursive username search
108113

maigret/resources/data.json

+28
Original file line numberDiff line numberDiff line change
@@ -33752,6 +33752,27 @@
3375233752
"webcam"
3375333753
]
3375433754
},
33755+
"Harvard Scholar": {
33756+
"checkType": "status_code",
33757+
"url": "https://scholar.harvard.edu/{username}",
33758+
"urlMain": "https://scholar.harvard.edu/",
33759+
"usernameClaimed": "ousmanekane",
33760+
"usernameUnclaimed": "noonewouldeverusethis7"
33761+
},
33762+
"Google Scholar": {
33763+
"checkType": "status_code",
33764+
"url": "https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q={username}&btnG=",
33765+
"urlMain": "https://scholar.google.com/",
33766+
"usernameClaimed": "Blue",
33767+
"usernameUnclaimed": "noonewouldeverusethis7"
33768+
},
33769+
"HuggingFace": {
33770+
"checkType": "status_code",
33771+
"url": "https://huggingface.co/{username}",
33772+
"urlMain": "https://huggingface.co/",
33773+
"usernameClaimed": "blue",
33774+
"usernameUnclaimed": "noonewouldeverusethis7"
33775+
},
3375533776
"dlive.tv": {
3375633777
"absenceStrs": [
3375733778
"Channel not found"
@@ -33771,6 +33792,13 @@
3377133792
"streaming"
3377233793
]
3377333794
},
33795+
"ManifoldMarkets": {
33796+
"checkType": "status_code",
33797+
"url": "https://manifold.markets/{username}",
33798+
"urlMain": "https://manifold.markets/",
33799+
"usernameClaimed": "ManifoldMarkets",
33800+
"usernameUnclaimed": "noonewouldeverusethis7"
33801+
},
3377433802
"instaprofi.ru": {
3377533803
"absenceStrs": [
3377633804
"/static/img/pages/profile/nobody.jpg"

0 commit comments

Comments
 (0)