How to code a crawl script that copies the first paragraph from Wikipedia?

Daniel,

Your code is wonderful and hits the spot, but it’s not there yet.

  1. If you type in a more than one word parsing phrase, it won’t return anything.

example “new york” won’t show anything.

then “new_york” will show you that you need to redirect and use proper capitalization.

ultimately, “New_York” will show you the proper display.

  1. I’d only like to show the first <p> from the a wikipedia listing. this will put less strain on my server as well as wikipedia’s. and, yes, i’ve downloaded to wikipedia multiple times now, whenever a call out was made.

A perfect example of what I’m trying to replicate can be seen at PhysOrg.com - Science News, Technology, Physics, Nanotechnology, Space Science, Earth Science, Medicine.

Just click on any of their post, check out the right sidebar and click on tag or more.

CLEAR EXAMPLE: PhysOrg.com - magnetic field

thank you everyone for your help.