今日已更新 52 条资讯 | 累计 27578 条内容
关于我们

开发者

编程技术、框架工具、最佳实践

7751
篇文章

共 7751 篇 · 第 371/388 页

Reddit r/webdev

How does the "see html" section of WordPress work?

I have tried to use the custom html block via WordPress but it seems to be limited with complexity. I am trying to add many sections and subcategories that follow a tree structure onto my webpages. What should I know before modifying the page's code directly, I think I have a raw HTML plugin installed. submitted by /u/neonrider2018 [link] [留言]

/u/neonrider2018 2026-05-29 07:32 👁 6 查看原文 →
Dev.to

How I built an Ofsted school data API on Apify (without scraping a single webpage)

Most scraping projects start by finding a website to scrape. This one started from the opposite direction: I knew the data existed as official government downloads, and my job was to make it accessible via a clean API. The data source Ofsted (the UK school inspections body) publishes monthly management information as CSV files on GOV.UK. The file covers all 22,000+ state-funded schools in England with their latest inspection grades, local authority, postcode, phase, and size data. It's 16 MB, published under the Open Government Licence v3.0 — explicitly permitting commercial use. No scraping needed. No authentication. Just a CSV download and some parsing logic. The architecture The actor is deliberately simple: Fetch the GOV.UK stats page to find the current month's CSV URL (the URL hash changes with each release) Download the CSV (~16 MB from assets.publishing.service.gov.uk ) Parse it with csv-parse Apply the user's filters (name, local authority, region, postcode prefix) Push matching records to the Apify dataset No Crawlee. No browser. No proxy. Just fetch() and a CSV parser. const match = html . match ( /href=" ( https: \/\/ assets \. publishing \. service \. gov \. uk \/[^ " ] +latest_inspections_as_at [^ " ] + \. csv ) "/ ); That one regex does the URL discovery. The GOV.UK page lists files in reverse chronological order, so the first match is always the latest release. The interesting part: Ofsted changed their grading system mid-build I built this in May 2026. In November 2025, Ofsted scrapped their 20-year-old four-word judgement system (Outstanding / Good / Requires Improvement / Inadequate) and replaced it with a report card format — six separate grade areas, each on a five-point scale: Exceptional Strong Expected standard Needs attention Urgent improvement Plus a standalone Safeguarding verdict (Met / Not met). The April 2026 CSV reflects this change entirely. There's no "Overall effectiveness" column. Schools inspected before November 2025 have null gr

Daniel Ainsworth 2026-05-29 05:21 👁 8 查看原文 →
Hacker News RSS

Social Animus

Article URL: https://justine.lol/animus/ Comments URL: https://news.ycombinator.com/item?id=48314875 Points: 59 # Comments: 15

jart 2026-05-29 04:20 👁 6 查看原文 →
Reddit r/webdev

How does pornhub track a user without cookies and through incognito mode?

Maybe an odd question but Pornhubs start page are actually recommendations based on your viewed videos. I suppose most folks here use incognito mode so, no cookies, clean state on each launch. Yet, if you launch another incognito window for the site, you will realize it remembered your viewing behavior and the videos reflect it. But how do they do this? There is no account, no cookies, no local storage. And technically, they wouldn't be allowed to track you in the first place due to the GDPR. Yet, it's the case. Anyone know how they achieve this? submitted by /u/SourSovereign [link] [留言]

/u/SourSovereign 2026-05-29 04:19 👁 7 查看原文 →