Jump to content
UBot Underground

Use of $meta description


Recommended Posts

Don't know if this is is a bug or intended operation.

 

Using Ubot version 4.0.96

 

Use of $meta description to get the page description returns nothing if the html is formatted like this:

 

<meta name="description" content="..."

 

It works if the HTML looks like this:

 

<meta name="DESCRIPTION" content="..."

 

The only difference being that the word description is in upper case rather than lower case.

 

Has anyone run into this? If so, any workarounds?

Link to post
Share on other sites

I am not sure about what process you are using to grab the meta info, but you have a couple of options:

 

You can use the "text case" constant or even set a condition that checks for either case.

 

 

John

Link to post
Share on other sites

I'm assigning the output of the document function '$meta description' to a variable. Looks like it only looks for the upper-case version.

 

I tried page scrape but ran into the same issue. Not all pages have the description tag set the same way. Some have the word in lower case. Some have it in upper case. Some have just the D in the word description capitalized.

 

So I guess a triple If statement to handle all 3 situations would do it.

 

Bill

 

P.S. Interesting side note: if you try a UI stat monitor using $meta description and the page currently being displayed does not have a meta description that it considers to be valid, that sends Ubot into an infinite Script Error loop which can only be recovered from by killing the Ubot process with Task Manager.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...