diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000..e075419 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,2 @@ +#!/bin/sh +python3 ./utils/update_site_data.py diff --git a/README.md b/README.md index a2009ca..572b848 100644 --- a/README.md +++ b/README.md @@ -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). +## 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 diff --git a/maigret/resources/data.json b/maigret/resources/data.json index c9b1f20..d181b1c 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -33752,6 +33752,27 @@ "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": { "absenceStrs": [ "Channel not found" @@ -33771,6 +33792,13 @@ "streaming" ] }, + "ManifoldMarkets": { + "checkType": "status_code", + "url": "https://manifold.markets/{username}", + "urlMain": "https://manifold.markets/", + "usernameClaimed": "ManifoldMarkets", + "usernameUnclaimed": "noonewouldeverusethis7" + }, "instaprofi.ru": { "absenceStrs": [ "/static/img/pages/profile/nobody.jpg"