Ron Nixon wrote:
Ignore my first posting. Here's what I'm trying to do.
I want to extract headlines from a newspaper's website
using this code. It works, but I want to match the
second group in (.*) and print
that out.
Sugguestions
import urllib, re
pattern = re.compile("""
href="(.*)">(.*)""", re.
Ignore my first posting. Here's what I'm trying to do.
I want to extract headlines from a newspaper's website
using this code. It works, but I want to match the
second group in (.*) and print
that out.
Sugguestions
import urllib, re
pattern = re.compile("""(.*)""", re.DOTALL)
page =
urllib.urlope