Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99736

Re: How can I count word frequency in a web site?

X-Received by 10.107.167.197 with SMTP id q188mr56780417ioe.6.1448895852349; Mon, 30 Nov 2015 07:04:12 -0800 (PST)
X-Received by 10.50.93.37 with SMTP id cr5mr293731igb.1.1448895852293; Mon, 30 Nov 2015 07:04:12 -0800 (PST)
Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!mv3no8049971igc.0!news-out.google.com!l1ni455igd.0!nntp.google.com!mv3no8049961igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Mon, 30 Nov 2015 07:04:11 -0800 (PST)
In-Reply-To <6851e3b8-0d46-4808-9f7f-372b71bf327c@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=155.201.35.24; posting-account=QHCkKAoAAAAtwxtoSlGaj-ksHegzSKUu
NNTP-Posting-Host 155.201.35.24
References <6851e3b8-0d46-4808-9f7f-372b71bf327c@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <a9dbdd7e-6c32-49aa-ae6c-9a4f42b8e497@googlegroups.com> (permalink)
Subject Re: How can I count word frequency in a web site?
From ryguy7272 <ryanshuell@gmail.com>
Injection-Date Mon, 30 Nov 2015 15:04:12 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:99736

Show key headers only | View raw


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 words, like 'fraud', 'lawsuit', etc.  I want to have a way to control for specific words.  I have a couple Python scripts that do this for a text file, but not for a web site.  I can post that, if that's helpful.


This works great!  Thanks for sharing!!

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How can I count word frequency in a web site? ryguy7272 <ryanshuell@gmail.com> - 2015-11-29 16:49 -0800
  Re: How can I count word frequency in a web site? Cem Karan <cfkaran2@gmail.com> - 2015-11-29 21:31 -0500
    Re: How can I count word frequency in a web site? ryguy7272 <ryanshuell@gmail.com> - 2015-11-29 18:54 -0800
      Re: How can I count word frequency in a web site? Michiel Overtoom <motoom@xs4all.nl> - 2015-11-30 08:56 +0100
  Re: How can I count word frequency in a web site? Laura Creighton <lac@openend.se> - 2015-11-30 03:51 +0100
    Re: How can I count word frequency in a web site? ryguy7272 <ryanshuell@gmail.com> - 2015-11-30 07:04 -0800
  Re: How can I count word frequency in a web site? ryguy7272 <ryanshuell@gmail.com> - 2015-11-30 07:04 -0800

csiph-web