On Sunday, November 29, 2015 at 7:49:40 PM UTC-5, ryguy7272 wrote:
> I'm trying to figure out how to count words in a web site. Here is a sample
> of the link I want to scrape data from and count specific words.
> http://finance.yahoo.com/q/h?s=STRP+Headlines
>
> I only want to count certain
On Sunday, November 29, 2015 at 9:51:46 PM UTC-5, Laura Creighton wrote:
> In a message of Sun, 29 Nov 2015 21:31:49 -0500, Cem Karan writes:
> >You might want to look into Beautiful Soup
> >(https://pypi.python.org/pypi/beautifulsoup4), which is an HTML
> >screen-scraping tool. I've never used
You might want to look into Beautiful Soup
(https://pypi.python.org/pypi/beautifulsoup4), which is an HTML screen-scraping
tool. I've never used it, but I've heard good things about it.
Good luck,
Cem Karan
On Nov 29, 2015, at 7:49 PM, ryguy7272 wrote:
> I'm trying to
On Sunday, November 29, 2015 at 9:32:22 PM UTC-5, Cem Karan wrote:
> You might want to look into Beautiful Soup
> (https://pypi.python.org/pypi/beautifulsoup4), which is an HTML
> screen-scraping tool. I've never used it, but I've heard good things about
> it.
>
> Good luck,
> Cem Karan
>
>
I'm trying to figure out how to count words in a web site. Here is a sample of
the link I want to scrape data from and count specific words.
http://finance.yahoo.com/q/h?s=STRP+Headlines
I only want to count certain words, like 'fraud', 'lawsuit', etc. I want to
have a way to control for
In a message of Sun, 29 Nov 2015 21:31:49 -0500, Cem Karan writes:
>You might want to look into Beautiful Soup
>(https://pypi.python.org/pypi/beautifulsoup4), which is an HTML
>screen-scraping tool. I've never used it, but I've heard good things about it.
>
>Good luck,
>Cem Karan
> On 30 Nov 2015, at 03:54, ryguy7272 wrote:
>
> Now, how can I count specific words like 'fraud' and 'lawsuit'?
- convert the page to plain text
- remove any interpunction
- split into words
- see what words occur
- enumerate all the words and increase a counter for each