Chapter 6: The Typewriter
Reborn in 2010: The AI in My Brain Is Too Powerful! by yangxxxxxx
Chen Yiran didn't obediently go take a nap. He had a feeling that if he lay down and closed his eyes, the next time he opened them it would be tomorrow.
He pulled a cold Coke out of the fridge, pressed it straight to his forehead, and said in his head with a certain amount of fighting spirit, "Come on, let's keep going. Making my name in this world is all riding on you."
| Fine. Open TextWrangler. New file, save it as scraper.py. |
|---|
Chen did as he was told.
| Put your hands on the keyboard. |
|---|
He took a deep breath and put them on.
Then his fingers started moving.
Line after line of text appeared in his head, and Chen turned himself into a typing machine.
His fingers danced across the keyboard, and line after line of code appeared on the screen.
from urllib2 import urlopen from BeautifulSoup import BeautifulSoup import re import json import threading import Queue import time import sys
def init(self, url, depth=1): self.url = url self.depth = depth self.results = [] self.visited = set()
Chen's good streak only lasted a little while before his hands started aching. At least Molly caught every typo the moment he made it.
He slogged along like that for three hours, until his head felt ready to explode, and Molly finally spoke up.
About two hours later, Molly said, 【Stop. Look at the screen.】
Chen took his hands off the keyboard and shook out his wrists.
There were roughly three hundred lines of code on the screen.
"I don't understand a single bit of it."
| Run it. Open Terminal, type 'python scraper.py', then hit Enter. |
|---|
Chen opened Terminal, typed it out exactly, and hit Enter.
Text started scrolling across the screen, line by line, fast.
URL: Title: Example Domain Links found: 1 Headings: h1 - Example Domain Text content: This domain is for use in illustrative examples...
After about ten seconds, the output stopped.
Done. Scraped 1 page(s) in 8.3 seconds.
| Molly: It runs. Let's keep adding features. |
|---|
For the next three hours, Chen turned back into a typewriter.
Molly pushed the code out through his fingers, one line at a time.
Partway through, Chen got unbearably hungry and ordered Papa John's — his favorite pizza place.
IKEA delivered the furniture too. He'd deliberately bought only simple pieces so he wouldn't have to do much assembly.
Half an hour of putting furniture together actually felt like a break to him — more comfortable than hunching over a keyboard with both hands.
Grinding away like that until nine at night, scraper.py had gone from three hundred lines to nearly six hundred. Molly had added concurrent scraping, error handling, automatic link following, data export, and even written a command-line interface.
| Test it again — python scraper.py. This time use a real website. |
|---|
Chen typed the address of CNN's official site into the terminal and hit Enter.
Output went scrolling down the screen at high speed. URLs, headlines, article summaries, publication times, image links... all sorts of information extracted automatically and laid out in neat rows.
Done. Scraped 47 page(s) in 2 minutes 14 seconds.
Chen stared at that line.
Forty-seven pages. Two minutes and fourteen seconds.
| Tool complete. |
|---|
The back of Chen's head was even hotter than it had been that morning.
| Molly: The brain produces more heat under heavy load. Your thermoregulatory system is working. You're not sick. |
|---|
"You sure about that? Good thing classes don't start until the day after tomorrow. If I had class tomorrow I definitely wouldn't make it."
| Relax. You watched plenty of medical documentaries in your last life. I'm a professional. |
|---|
Chen went to the fridge, got a bottle of water, and drank half of it in one go.
| Molly: I want to put this tool online. You remember GitHub, I assume. |
|---|
"Yeah, I've at least heard of it. The site where you put code. Isn't that where OpenClaw came out of?"
| Open Safari and search for GitHub. |
|---|
Chen searched it up: github.com. The page was very clean, with a big headline reading "Social Coding."
| Register an account. |
|---|
Chen thought about a username for a moment and just filled in whatever came to mind. For the email he used the Gmail account he'd set up that day. Nobody in their right mind used Hotmail — in his last life that piece of junk had cost him two missed assignment deadlines, so the very first thing he'd done once the internet was working was get his Google account sorted out.
After the GitHub registration, Molly had him search for something called Git and install it. A command-line tool — it looked like a hassle from the start.
| Just follow my instructions. |
|---|
Another twenty minutes or so, and Molly had used his hands to configure Git, create a repository, and push the code up.
A new repo appeared on his GitHub profile, named "web-scraper." Below it was the source of scraper.py, plus a README.md — the documentation Molly had him write.
It described the tool's features, installation instructions, and usage examples. It actually looked pretty legitimate.
| The thing is public now. The problem is, nobody knows it exists. |
|---|
"First of all, what's the point of making it public?"
| It helps me confirm what I'm capable of. We need to get it out there. Try a Google search. |
|---|
Chen thought about it and typed "where to share open source projects" into Google.
The results came back. Reddit's r/programming, Stack Overflow, SourceForge, some site called Hacker News...
Molly looked at it for a few seconds.
| The fourth one. Open it up. |
|---|
Chen clicked through.
It was an extremely bare-bones web page — white background, gray text, a pile of headlines and links stacked together, each with a little upward arrow and a number to its left, and "Hacker News" written across the top.
"Is this thing any good? It looks way too primitive. What about Reddit? That forum's really popular."
| This is a dedicated programmers' community. More professional. Register an account and try it. |
|---|
Registration was simple — just a username and password.
Once that was done, Molly had him click a link labeled "Submit."
| For the title, write: Show HN: web-scraper – a simple and fast web scraper in Python. Put the GitHub repo link in the URL field below it. |
|---|
Chen typed it out exactly and submitted.
The page refreshed, and his post appeared in Hacker News's new-submissions list, score 1, with "0 points" written beside it.
| Now we just wait. Go do whatever you need to do. |
|---|
Chen closed Safari and leaned back in his chair.
He glanced at the time — already ten o'clock. From one thirty in the afternoon until now, he'd been running at full intensity the whole time.
His fingers ached. It was like he'd run a marathon except his legs were fine and his brain was about to explode.
| That's enough for today. You need roughly eight to nine hours of rest. |
|---|
"You really do care about me."
| I need your brain in optimal condition. Rest is part of maintenance. |
|---|
"Fine, fine, o omnipotent Lady Molly."
Chen was still pretty excited. Whatever else, after today's performance, Molly was finally starting to feel like a proper cheat ability.
He forced himself up, went to the bathroom, and took a shower with the water on the cool side. His brain finally felt comfortable again.
Back in the bedroom, he lay down and was about to sleep, but couldn't resist pulling the laptop over to check a couple of sites.
The GitHub repo: 0 stars. The Hacker News post: 0 points.
Nothing at all. Like tossing a pebble into the ocean.
He hadn't expected anyone to notice it the moment it went up, but Chen still felt a small pang of disappointment.
It was a bit like posting a book on Fanqie and getting to twenty thousand words with no idea what the future holds.
Whatever. It was done. Time to sleep.
And so the deep night came on, and any number of night owls rolled out of bed. Molly's first attempt was about to shake Hacker News to its foundations.