TransWikia.com

How I can import data from URL by using output of GoogleCustomSearch?

Mathematica Asked by May Aly Awad on January 6, 2021

I am trying to make a word cloud from all URLs that are as outputs after using google custom search so I think I need to read those URLs as data or text to can make a word cloud

this is code just you need to add API and search ID

CS = ServiceConnect["GoogleCustomSearch"]

rs1 = ServiceExecute["GoogleCustomSearch", 
  "Search", {"Query" -> "Architecture", 
  "Site" -> "https://www.archdaily.com/", MaxItems -> 5}]

. that is what I mean

One Answer

Update

To generate a WordCloud from the combined plaintext

rs1[All, "Link"] // Normal // Map[Import[First@#, "Plaintext"] &] // 
   StringJoin // DeleteStopwords // WordCloud

Try this

wc[link_] := Import[First@link, "Plaintext"] // DeleteStopwords // WordCloud

rs1[All, "Link"] // Normal // Map[wc]

Correct answer by Rohit Namjoshi on January 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP