Jump to content

Wikipedia workflow (alternate)


Recommended Posts

  • 3 months later...

Thanks for this workflow. Still works fine for me.

 

A couple of adjustments I needed to make in w.py:

 

The span with class "searchmatch" now uses double quotes instead of single quotes, plus the quote html entities weren't replaced. Changing it to the following worked fine for me:

 

return item['snippet'].replace("<span class=\"searchmatch\">","").replace("</span>","").replace("<b>...</b>","...").replace(""","\"")

Link to comment
  • 7 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...