1I wanted to see if val.town forwards my client IP Address using the x-forwarded-for header, which it does, but cloudflare provides the True-Client-IP header as well. When you run a val on the website, it is actually running from val's servers so it won't come from your client IP. You'll need to copy the express fetch and run that from your client.
1Migrated from folder: RSS/fetchAndParseFeeds
1Migrated from folder: lunchMenu/fetchAndStore
1Migrated from folder: RSS/utils/fetchText
7## Architecture
8
91. Fetch and parse the HTML of https://blog.val.town – @stevekrouse.valTownBlogJSON.
102. Create an RSS string out of that array of blog objects – @stevekrouse.valTownBlogRSS.
113. Expose [an endpoint that returns that RSS](https://stevekrouse-blogRSS.web.val.run), with appropriate content-type and cache headers – this val, @stevekrouse.blogRSS
13## Notes
14
15* This is very inefficient. It refetches and re-parses blog.val.town on every single request, modulo some caching via the headers. It would be much more efficient to cache the results of fetching and parsing the Val Town blog, and then only re-fetch it every 10 minutes or so.
16* Instead of fetching and parsing HTML from super.so, we could get this same data from Notion's API, with a val like @stevekrouse.notionGetDatabase.
17
18Migrated from folder: Archive/blogRSS
1Migrated from folder: common/fetchAndParseXML
1Migrated from folder: common/fetchText
15
16- Refresh your tokens: https://www.val.town/v/andreterron/refreshTwitterToken
17- Fetch user by id: https://www.val.town/v/andreterron/fetchTwitterUser
18- Search posts: https://www.val.town/v/andreterron/searchTweets
19- Write an X post: https://www.val.town/v/andreterron/postTweet
1Migrated from folder: A_Make_A_Val_Day/_23_08_17_Actually_Its_X/Twitter_Helpers/fetchTwitterUser
1Migrated from folder: common/fetchJSON