cpssd-students / steely

a python 3.6 facebook/telegram bot
GNU General Public License v3.0
21 stars 15 forks source link

Remove escaped HTML stuff from Trademarks #175

Open byxor opened 6 years ago

byxor commented 6 years ago

Example:

Name: AT&T BUSINESSDIRECT
SN: 78144811
Date: 02/10/2004
Description: N/A

The name should be AT&T BUSINESSDIRECT

We might also need to encode searches. e.g. .tm AT&T will search for AT&T.

What are those escaped HTML things called? (  & etc)

iandioch commented 6 years ago

dese boys https://en.wikipedia.org/wiki/Character_encodings_in_HTML#HTML_character_references

sentriz commented 6 years ago
import html
print(html.unescape('£682m'))

But maybe requests also has a thing for that

On Fri 27 Apr 2018, 15:21 Brandon Ibbotson, notifications@github.com wrote:

Example:

Name: AT&T BUSINESSDIRECT SN: 78144811 Date: 02/10/2004 Description: N/A

The name should be AT&T BUSINESSDIRECT

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sentriz/steely/issues/175, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhBm3tzPUYtVuldNg4e4XAN07Cm8iIcks5tsylngaJpZM4TqdXh .