1
$\begingroup$

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

$\endgroup$
3
  • $\begingroup$ Welcome to MSE. Please post code, not images. It is not clear what you are trying to do. Do you mean you want to Import the plaintext from the link in the Link column and create a wordcloud from those words? $\endgroup$ Sep 30 '20 at 13:39
  • $\begingroup$ Well, I updated it now. $\endgroup$ Sep 30 '20 at 13:50
  • $\begingroup$ yes, I mean import data as text from the Link in the column and create a word cloud from those data @RohitNamjoshi $\endgroup$ Sep 30 '20 at 14:15
0
$\begingroup$

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]
$\endgroup$
4
  • $\begingroup$ it's worked thanks so much just I need to collect them as a one-word cloud. @RohitNamjoshi $\endgroup$ Sep 30 '20 at 14:35
  • $\begingroup$ @MayAlyAwad Answer updated to show combined WordCloud generation. $\endgroup$ Sep 30 '20 at 15:03
  • $\begingroup$ it's worked well thank you so much I appreciate this... $\endgroup$ Sep 30 '20 at 15:12
  • $\begingroup$ @MayAlyAwad You are welcome. $\endgroup$ Sep 30 '20 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.