<p>I scrape content from an external website using JSON API with the FeedMe plugin. Content is saved as entries with plain text and redactor-type Fields.</p>
<p>How can I structure this content so that I can display the most used words?</p>
<p>Example: I fetch content from a chess website. I want to find words or chess terminology (i.e. bishop, checkmate, pawn etc.) that are most often used, and list it like this:</p>
<ol>
<li>bishop (302)</li>
<li>pawn (278)</li>
<li>checkmate (201)</li>
<li>stalemate (154)</li>
</ol>
<p>...and so forth.</p>
<p>The number in parenthesis would be the number of times that word or term is counted in the scraped content.</p>
<p>Have anyone done anything similar? I would guess there are many use-cases for this, but couldn't find any relevant discussions on it.</p>

CC BY-SA 4.0
2021-01-12T15:39:40.627Z
Do you have a predefined list of those _words_?
Oli
CC BY-SA 4.0
2021-01-13T06:56:28.360Z
I do not have a predefined list of words. But an acceptable solution would be to define such a list if neccessary.
Jay
<structure><entries-field><content><count>
Structuring externally scraped content
# Structuring externally scraped content

(Asked by: username_0 on 2021-01-12)

I scrape content from an external website using JSON API with the FeedMe plugin. Content is saved as entries with plain text and redactor-type Fields.

How can I structure this content so that I can display the most used words?

Example: I fetch content from a chess website. I want to find words or chess terminology (i.e. bishop, checkmate, pawn etc.) that are most often used, and list it like this:

1. bishop (302)
2. pawn (278)
3. checkmate (201)
4. stalemate (154)

...and so forth.

The number in parenthesis would be the number of times that word or term is counted in the scraped content.

Have anyone done anything similar? I would guess there are many use-cases for this, but couldn't find any relevant discussions on it.

**Tags:** structure, entries-field, content, count

> **Comments:**
> **username_1**: Do you have a predefined list of those _words_?  
> **username_0**: I do not have a predefined list of words. But an acceptable solution would be to define such a list if neccessary.  

---

## 0 answers

