L2 Dailyby NOT2L8

NO. 03 ยท THE 5 STEPS

CourseStep 1 \u00b7 Collect

โ‚ฟ BTCโ€”โ›ฝ Fast feeโ€”๐Ÿงฑ Blockโ€”โšก Lightningโ€”๐Ÿ• DOGEโ€”๐Ÿ”’ XMRโ€”๐Ÿช™ LTCโ€”

Step 1: Collect posts

Purpose

Collect public X posts for four searches. Preserve the account, post URL and timestamp.

Before you start

Read 00-start-here. The Mac must have internet access, the project environment and valid X access. Keep login cookies in the private .env file. Do not copy that file into the submission.

Input

The edition date and the four search definitions in scripts/collect_x.py.

Procedure

  1. Start scripts/daily.sh for a normal edition.
  2. Use scripts/backfill.sh YYYY-MM-DD for an archive edition.
  3. Search once per coin through one shared twikit connection.
  4. Request up to 25 posts per search with the default configuration.
  5. Save the raw response in data/raw/YYYY-MM-DD.json.
  6. Record window_start, window_end and the source method.

The normal window ends about 30 seconds before collection. An archive window ends at 6 PM New York time. Each window lasts 24 hours. A missed-day run must use the archive window for that date.

Check and output

The raw file has four search results and UTC window boundaries. Continue to 02-check-posts.

If the step fails

Stop the run. Read the collection error in logs/daily.log. Refresh the cookies with the existing helper if required. Do not manufacture posts or reuse a different day's data under this date.

๐Ÿ“ Open this note on GitHub โ†—

Phone widget ยท test feature

Put it on your phone

The widget is a small card on your Home Screen. It shows the Bitcoin price, the fee, and today's top news.

  1. Install the free Scriptable app. Open it one time.
  2. Tap Download script. The file goes to the Files app.
  3. In Files, move scriptable.js into iCloud Drive โ€บ Scriptable.
  4. Hold your Home Screen. Tap +. Choose Scriptable. Tap Add.
  5. Hold the new widget. Tap Edit Widget. Choose the script.
๐Ÿค– Android: use any JSON widget app. Point it at https://not2l8-l2-daily.vercel.app/widget.json
Step 1 of 4

How to use it

  1. Press โ–ถ play. The video is 70 seconds.
  2. Read the cards under the video.
  3. Tap a card. The real post opens on X.
  4. Open ๐Ÿ“š Course to learn how it works.
Step 2 of 4

What it does

Every day at 6 PM, a robot reads X. X is a social media app.

The robot finds real posts about 4 coins: Bitcoin, Dogecoin, Monero and Litecoin.

Then it makes a 70-second video and a set of cards. Every card shows who posted and when.

If no sampled posts pass the filters, the card says "Quiet today." Other news may exist.

Step 3 of 4

The core

This is the automation. It runs by itself every day.

1โฐ At 6 PM, a timer on the Mac starts the robot.
2๐Ÿ”Ž The robot collects posts from the last 24 hours.
3๐Ÿงน It removes ads, price guesses and copies.
4๐ŸŽฌ It makes the video and adds a voice.
5๐ŸŒ It puts the video online. Then it checks that the page loads.
Step 4 of 4

Phone widget

You can put a small card on your phone. It shows the Bitcoin price, the fee and today's top news.

It uses the free Scriptable app on iPhone. This is a test feature.