download text of an article in google news - nlp

I'd like to do some natural language processing (nlp) mining based on news.
google has a smart way of extracting a useful text from news articles. that's the text it displays in google news. is there an easy way to download that text rather then copy the displayed text from google news then find that text in the original html and extract the div with that text?

Related

how to customise elementor functionality(how do I find the right bit of code?)

I'm trying to make a web page formatted similar to that of Netflix. Where a list of videos are displayed in a div with two arrows in either direction on each side. When the number of videos are more than the width of the window clicking the arrows moves the displayed videos in the corresponding direction by one video.
And(key part), when a video is clicked, the clicked video gets displayed on another div(main part of the screen) with a text of introduction and an excerpt of the video playing in the background of that section, plus a "play" button to start the video.
I would probably be able to sort it out with vanilla code. But this page is managed by WordPress so I would have to plug in my code with wordpress.
My assumption is that hacking the existing elementor code for the video widget would be the quickest way to do it. But I don't know how to find the code corresponding to the functionality I need to modify to customize it to do what I want. I can locate the video-widget file, but still, it's a huge file with lots of code. How do I find the functionality I need specifically to import into my own code?
Thank you and sorry for the verbose phrasing.

Anchor links using Alloy rich text editor

I am working on an app that is using the alloy rich text editor.
I need to implement anchor links with this text editor but didn't find anything on the internet about how I could do this.
Does anyone tried and implemented this? Some tips would help me

I cannot add movie in text widget

I use impresspage 4 -current verion
I send the video to the repository. I add a text widget to the page. I click the Insert / edit your movie and choose the video from the repository. Unfortunately, the movie does not appear.
If I add the html widget and I will add the video in the video tag, it works.
Is this a bug?
You are probably using a non standard text widget, but one provided as a plugin. Because default widget has no video capabilities.
The plugin may have limited capabilities. I suggest you to use Video widget to display videos from YouTube or Vimeo.
Alternatively you can use HTML widget to display your video in some unique way, like html5 video player, etc.

How to specify link text when the link is an image?

I'm making an web shop (my first one), and on the front page my client wants banners with their current hot deals. Naturally I want Google and other robots to be able to understand what these links are all about. I think (but I'm not sure) that Google will treat my <a> tag better if it will have some relevant text inside it. But a banner is just an image. How do I put text there? Could a <span style="display:none"> work? Maybe the title="" attribute?
Added: OOps, forgot to say - I place the image as a background image to my <a> tag - this gives me vertical centering. So there are no <img> tags.
Google will index the Alt text property on your image.
http://www.search-marketing.info/organic-listings/img-alt.htm
I've always done <span style="display:none;">My SEO text</span>. I've learned this trick from the CSSZenGarden. Another way to "hide" text involve setting a text-indent: -100000em;, and I'm sure there are some more.
It works at the CSS Zen Garden, google does not penalize it. search for "the beauty of css design" and you'll see that it gets indexed at google.
Google cant crawl images but Google can index alt text so try to link the images with alt-abbr.

Sharepoint: display plain text field as html

I have a Sharepoint list, where one of the columns is plain text - Description. When you edit a list item, Description field is normally a TextArea. I have it programmed that this TextArea is extended with JavaScript to accept rich text (html really), so I have my custom rich text field. The problem is that when I input the rich data everything looks fine but when I save the edited item and then display it, the text is displayed as plain text, not html, so instead of a bold text I get "< b >text< /b >". And I would like it to be displayed as html. What can I do with it?
Edit: I don't want to use the built-in editor, because I need some different behavious.
The code that reads in the text input from the form and saves it to the list will be doing a HTMLEncode operation that replaces
< with <
> with >
and so on (look at the source of the page after a save)
This occurs 'server side' so you won't be able to change this using JavaScript.
You've got two options I think
As F5 mentioned you can create a custom field type with your own behaviour for rendering and update. This is the 'correct' way to do this.
You could change your funky javascript to work on a rich text field, hack into the rendering of the built in RTE and replace it with your own.
Of cource as soon as you are taking input from a user and then rendering it back to your web page you open yourself up to all sorts of nasties such as Cross Site Scripting if you are not filtering out potential bad stuff (the very reason why the HtmlEncode is used) - less of a problem in a typical SharePoint site on an Intranet than a public facing site.
SharePoint supports rich text columns using its own in-built editor. You just have to change the column settings so it allows rich text.
If you are using a JavaScript editor because of browser compatability with the built-in rich text editor then SharePoint will always strip the html from whatever is entered as it expects the input to be plain text.
Re your comments
If you want the field to display in rich text it needs to be a rich text field, by setting it to plain text you are always going to lose your custom formatting.
You need to look into custom field types
So where exactly are the data being displayed incorrectly: on the List Display Form or on a Page Layout? If it's on the Page Layout the fix is easy: create a custom Field Control which will retrieve the value of the field (like SPContext.Current.ListItem["YourField"]) and decode the contents to get HTML instead of encoded HTML entities.

Resources