Category:CypherTech: Difference between revisions

From Traxel Wiki
Jump to navigation Jump to search
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Cypherpunk]]
[[Category:Cypherpunk]]
= Interesting Subreddits =
= Web UX =
* politics
* HTML First Design / Minimal Javascript
* news
** https://old.reddit.com/r/ProgrammerHumor/comments/18r9fu0/theworldwouldbebetterwithplainhtml/
* worldnews
* askreddit
* askscience
* conservative
* dataisbeautiful
= Reddit OAuth2 =
* https://www.reddit.com/r/redditdev/wiki/oauth2/explanation/
* https://www.reddit.com/dev/api/oauth/
* https://github.com/reddit-archive/reddit/wiki/OAuth2
** https://github.com/reddit-archive/reddit/wiki/OAuth2#application-only-oauth


'''Example Curl Request'''
= GPT =
<source>
openai.error.RateLimitError: Rate limit reached for 10KTPM-200RPM in organization org-CleAC9cITP7hCx44ZiB2gw5d on tokens per min. Limit: 10000 / min. Please try again in 6ms. Contact us through our help center at help.openai.com if you continue to have issues.
curl
 
  -X POST
* API Site: https://platform.openai.com/docs/introduction
  -d 'grant_type=password&username=reddit_bot&password=snoo'
* GPT 4o: https://platform.openai.com/docs/models/gpt-4o
  --user 'p-jcoLKBynTLew:gko_LXELoV07ZBNUXrvWZfzE3aI'
  https://www.reddit.com/api/v1/access_token
</source>
'''Real Curl Request'''
<source>
curl
  -X POST
  -d 'grant_type=client_credentials'
  --user 'client_id:client_secret'
  https://www.reddit.com/api/v1/access_token
</source>
'''One Line'''
<source>
curl -X POST -d 'grant_type=client_credentials' --user 'client_id:client_secret' https://www.reddit.com/api/v1/access_token
</source>
'''Oauth Data Call'''
<source>
$ curl -H "Authorization: bearer J1qK1c18UUGJFAzz9xnH56584l4" -A "Traxelbot/0.1 by rbb36" https://oauth.reddit.com/api/v1/me
$ curl -H "Authorization: bearer J1qK1c18UUGJFAzz9xnH56584l4" -A "Traxelbot/0.1 by rbb36" https://oauth.reddit.com/r/news/top?t=day&limit=100
</source>
* https://old.reddit.com/r/worldnews/top/?sort=top&t=day
* /r/subreddit/top?t=day&limit=100
* count=100&
= Reddit Python =
pip install aiofiles aiohttp asyncio

Latest revision as of 00:00, 7 June 2024

Web UX

GPT

openai.error.RateLimitError: Rate limit reached for 10KTPM-200RPM in organization org-CleAC9cITP7hCx44ZiB2gw5d on tokens per min. Limit: 10000 / min. Please try again in 6ms. Contact us through our help center at help.openai.com if you continue to have issues.

Pages in category "CypherTech"

The following 7 pages are in this category, out of 7 total.