├── .github └── workflows │ └── main.yml ├── README.md └── onlyfans.json /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: sync job 2 | 3 | on: 4 | schedule: 5 | - cron: 0 * * * * 6 | workflow_dispatch: 7 | 8 | jobs: 9 | sync: 10 | runs-on: ubuntu-latest 11 | permissions: 12 | contents: write 13 | env: 14 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 15 | steps: 16 | - uses: actions/checkout@v3 17 | - name: setup git 18 | run: | 19 | apt update && apt install -y jq 20 | git config user.name ${GITHUB_ACTOR} 21 | git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" 22 | echo "old version: $(cat onlyfans.json | jq ".format" | cut -c2- | cut -d ":" -f 1)" 23 | - name: update onlyfans.json 24 | run: | 25 | curl --retry 5 --retry-delay 30 "https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json" > onlyfans.json 26 | git add onlyfans.json 27 | git diff-index --quiet HEAD || git commit -m "sync Version $(cat onlyfans.json | jq ".format" | cut -c2- | cut -d ":" -f 1)" 28 | git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## dynamic rules for [OnlyFans DataScraper](https://github.com/DIGITALCRIMINALS/OnlyFans) 2 | Credit to [Hippothon](https://github.com/hippothon) for reversing the algorithm. 3 | 4 | I'd like to thank [OFFriend](https://github.com/OFFriend) for providing automatic commits for years keeping the project alive, they've retired. 5 | 6 | Maintained by [DIGITALCRIMINALS](https://github.com/DIGITALCRIMINALS) 7 | 8 | ------ 9 | I'm manually updating my fork. 10 | There's other providers that automatically update their rules and use the same format as my config. 11 | 12 | Thanks to the following: 13 | 14 | * ... 15 | -------------------------------------------------------------------------------- /onlyfans.json: -------------------------------------------------------------------------------- 1 | { 2 | "static_param": "ZQA9HPtVxkqF292DHHQlYNhx7WRQsAKU", 3 | "format": "13190:{}:{:x}:653286c6", 4 | "checksum_indexes": [11,17,13,20,15,39,35,14,26,14,15,19,36,14,10,28,34,36,24,7,30,0,31,37,35,34,7,1,5,35,30,27], 5 | "checksum_constants": [115,100,-92,138,-141,100,146,120,103,111,-107,-96,103,50,-136,-66,-87,102,-71,-107,-88,71,123,-109,95,91,-78,-112,-81,76,71,-72], 6 | "checksum_constant": 272, 7 | "app_token": "33d57ade8c02dbc5a333db99ff9ae26a", 8 | "remove_headers": ["user-id"], 9 | "error_code": 0, 10 | "message": "" 11 | } 12 | --------------------------------------------------------------------------------