name: "scraping" environment: sdk: '>=2.12.0 <3.0.0' dependencies: http: ^0.13.1 html: ^0.15.0 import 'package:http/http.dart' as http; import 'package:html/parser.dart' show parse; // mainé¢æ°ãéåæå¦ç(await)ã使ç¨ããã®ã§asyncã void main() async { // åå¾å ã®URLãå ã«ãã¦ãUriãªãã¸ã§ã¯ããçæããã final url = 'https://zenn.dev/'; final target = Uri.parse(url); // åå¾ããã final response = await http.get(target); // ä¸ã®è¡ã®ã³ã¡ã³ããå¤ããã¨
{{#tags}}- {{label}}
{{/tags}}