日々のニュースや知りたい情報をWebやメール、SNSから入手することが当たり前になった昨今だが、欲しい情報を能動的に収集することも自動化してみたいそう思った。RSSツールやWeb収集ツールは高速でSNSをサポートするものもある。しかしWebサイトに必ずしもRSSフィードを設置しているわけではないので能動的にPythonなどでWebを解析するスクレイピング技術があるがWebごとに解析する仕様では作成するのはなかなか大変だ。

無償のPower Automate Desktopを使ってみる

Windows 11の最新版を入手するためにノートPCを入手したが、デフォルトで搭載されていたPower Automate Desktopでは「ブラウザー自動化」もフローに搭載されている。これを試してみよう。なお、スクレイピングやツールによる過度なアクセスはWebサーバーへの負担がかかるため禁止しているサイトもあるので規約やドメイン直下に設置してあるrobots.txtを調べてみるとよいだろう。

メニューの「新しいフロー」から新規フローを作成し、左側のアクションの「ブラウザー自動化」から「新しいMicrosoftEdgeを起動」をドラッグで中央に配置するとパラメーターを設定するウィンドウが開くので、初期URLに目的のWebサイトを設定する。

ターゲットにするWebサイトのURLは新着情報がストックされているようなアドレスを目視で探して設定する。https://news.mynavi.jp/techplus/を例にすると、https://news.mynavi.jp/techplus/list/headline/?pageあたりを設定。あとはそのままで保存する。

次に「Webデータ抽出」から「Webページからデータを抽出」を同様に配置する。すると下記のウィンドウが表示される。

この状態のままでMicrosoftEdgeでターゲットにしたURLへアクセスすると「ライブWebヘルパー」が自動で立ち上がる。マウスでブラウザ上から抽出の設定を行えるツールだがこれが便利。抽出するHTMLタグなどの要素を強調表示するので、抽出したい目的の箇所を選ぶ。

強調枠内で右クリックするとメニューが表示されるので「要素の値を抽出」→「テキスト」を選択するとライブWebヘルパーの抽出プレビューに実際の抽出結果が表示される。

次の記事で同様の操作を行うとそれ以降の記事も自動抽出してくれるのがとても便利だ。

ライブWebヘルパーを終了すると「Webページからデータを抽出する」にはDataFromWebPae変数が設定されているのでそのまま保存する。

取得したデータを次のアクションからいろいろ選択できるがここではテキスト保存を行ってみることにした。アクションの「ファイル」にある「テキストをファイルに書き込む」を設置し、ファイルパスにローカルデスクトップのtest.txt、書き込むテキストは右上にある「X」をクリックして生成された変数「DataFromWebPage」を指定する。

ブラウザー自動化にある「Webブラウザーを閉じる」をそのまま設置し、右矢印の実行ボタンを押すと、ブラウザが立ち上がりURLへと移行、test.txtには図のように記事タイトルが書き込まれる。

セレクタ修正も簡単なライブWebヘルパー

見出しだけでは味気ないので、「Webページからデータを抽出する」をダブルクリックし、MicrosoftEdgeでURLへ移動するとライブWebヘルパーが立ち上がる。リンクの情報を得られるAnchorから右クリックで要素の値をテキスト、Hrefから抽出。

次の記事に同様の設定を行うと表示全記事が抽出される。

実行するとURL情報も取得できている。しかし余分なスペースが多い。これもファイルとテキストのアクションで賄える。以下のように配置して実行すると即席ではあるがある程度整形できる。

スクリプトでフローの受け渡しも可能

Power Automate Desktopではメイン部分(アクションを配置するエリア)のコピーペーストで受け渡しも可能なスクリプトがあるが、今回の工程は以下のようになる。テキストの読み書きなどのパスは環境の応じて変える必要があるが、手軽にベースとなるフローをやりとりすることも可能だ。

WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;DisplayName
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;:
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;ローカル コンピューター
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;,
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;Route
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;:{
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;ServerType
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;:
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;Local
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;,
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;ServerAddress
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;:
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;},
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;DesktopType
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;:
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;local
WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://news.mynavi.jp/techplus/list/headline/?page''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 TargetDesktop: $'''{\"DisplayName\":\"ローカル コンピューター\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(0) > div:eq(2) > div:eq(1) > section > div:eq(0) > ul > li''' ExtractionParameters: {[$'''a''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''a''', $'''Href''', $'''''', $'''Value #2'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: DataFromWebPage AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
WebAutomation.CloseWebBrowser BrowserInstance: Browser
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\user\\Desktop\\test.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Text.Replace Text: FileContents TextToFind: $'''\\s+''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''\\n''' ActivateEscapeSequences: True Result=> Replaced
File.WriteText File: $'''C:\\Users\\user\\Desktop\\test.txt''' TextToWrite: Replaced AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.UTF8

個人活用でも自動化威力を発揮するPower Automateだが月額の有償版プレミアムやMicrosoft 365環境ではクラウドと連携したりPowerShellなどでのアクセス、タスクやスケジューリングなど実用的な機能も豊富である。秀逸なフローを同環境の相手にわたせば業務効率も捗りそうだ。登場当時の筆者の環境では少々ハードウェア環境が厳しかったが、新調したPCではさすがに軽快に動く。まずは無償のPower Automate Desktopでいろいろ試してみようそう思った次第である。

quot;}''' BrowserInstance=> Browser

この記事は
Members+会員の方のみ御覧いただけます

ログイン/無料会員登録

会員サービスの詳細はこちら