2022-01-25から1日間の記事一覧

toyama

import requests from bs4 import BeautifulSoup from urllib.parse import urljoin import pathlib import re headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" } def fetch_soup(url, parser="html.pa…

花粉2

function myFunction() { const html = UrlFetchApp.fetch('https://xxxxx/xxxxx/kafun.html').getContentText(); let date = Parser.data(html).from('<p style="text-align: center;"><span style="font-size: large;">').to('</span><span style="font-size: large;">新居浜地区</span></p>').build().replace('</span>