← Back to index
|
Original Bugzilla link
Bug 4766 – Function to load a whole HTML page
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-08-29T19:35:02Z
Last change time
2020-03-21T03:56:42Z
Assigned to
No Owner
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2010-08-29T19:35:02Z
This page and the long (and partially wrong) D2 entry:
http://rosettacode.org/wiki/Web_scraping#D
shows that probably Phobos needs a simple function to download a whole HTML page given just the URL. It's a common basic need. See the Python version: import urllib page = urllib.urlopen("
http://tycho.usno.navy.mil/cgi-bin/timer.pl
")
Comment #1
by justin — 2014-06-06T16:24:00Z
bearophile: Can you close this now that we have the high-level cURL interface? D version: import std.net.curl; void main() { auto page = get("
http://tycho.usno.navy.mil/cgi-bin/timer.pl
"); }