用于获取Web新闻并在另一个站点中显示它的脚本

编程入门 行业动态 更新时间:2024-10-20 20:32:02
本文介绍了用于获取Web新闻并在另一个站点中显示它的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Hello Great People。 我希望你们都做得很棒! Im to获取网络新闻并将内容显示到另一个网站。 我的搜索引导我使用许多脚本,例如使用Google API。 我的问题我:是否有任何具体的要学习的编程语言可以帮助我在不使用谷歌API的情况下做到这一点吗? 提前非常感谢你

Hello Great People all over. I hope you all doing great! Im to fetch a web news and display the content into another web site. my search leaded me to many scripts like using Google API. my Question i that: is there any specific programming language to learn that can help me in doing this without using google API? In advance thank you very much indeed

推荐答案

嗯,你的问题有一些缺陷(除法律部分外): - 什么样的新闻? RSS提要,或者你想从网页中提取内容? - 由于网页是由服务器端和客户端组成的,所以主要问题是你是想在客户端上执行此提取还是服务器端 - Google API不是一个脚本它是一个API。您可以从脚本语言中使用它,但不仅仅是。 - 如果你想在客户端做一些事情,你别无选择,只能学习和使用javascript - 这种任务在服务器端更好地执行很多原因(通过使用Google API,您实际上使用谷歌服务器基础设施来执行不同的任务)。 - 如果您想进行服务器端Web开发,您必须根据您当前的技能进行选择,对该领域未来的专业期望,当然还要基于您将部署的平台。最简单和最常见的是从 PHP 开始[ ^ ],但如果可以的话,最好先启动学习C# [ ^ ]。 [基于OP澄清的更新] 首先,如果您不了解Web应用程序中的客户端和服务器端,我不会不知道,你的期望是什么...... 但是让我们坚持使用RSS源,看看以下链接。你不需要重新发明轮子。所有主要语言都有几个RSS阅读器。选择你想要的任何一个。 客户端: designshack/articles/javascript/build-an-automated-rss-feed-list-with-jquery/ [ ^ ] www.jqueryrain/2012 / 07 / best-jquery-rss-feed-reader-tutorial-plugin-examples / [ ^ ] 服务器端: Python: wiki.python/moin/RssLibraries [ ^ ] PHP: www.the-art-of-web/php/rss-example/ [ ^ ] 依此类推...... Well, your question has some flaws (aside of the legal part): - What kind of news? RSS feeds, or you want to extract content from a web page? - As a web page is made of server side and client side, the major question is if you want to perform this fetching on client or server side - Google API is not a script it is an API. You can use it from script languages, but not only. - If you want to do something on client side, you have no other option but to learn and use javascript - This kind of tasks are better performed on server side for many reasons (by using Google API, you actually use google server infrastructure to perform different tasks). - If you want to do server side web development, you have to choose based on your current skills, your professional expectation for the future in this field, and of course based on the platform you will deploy to. The simplest and most common is to start with PHP[^], but if you can, better start learning C#[^]. [Update based on OP's clarification] First of all, if you don't understand what's client and server side in a web application, I don't know, what your expectations are... But let's stick to RSS feeds, look at the following links. You don't need to reinvent the wheel. There are several RSS readers for all major languages. Choose whichever you want. Client side: designshack/articles/javascript/build-an-automated-rss-feed-list-with-jquery/[^] www.jqueryrain/2012/07/best-jquery-rss-feed-reader-tutorial-plugin-examples/[^] Server side: Python: wiki.python/moin/RssLibraries[^] PHP: www.the-art-of-web/php/rss-example/[^] And so on...

亲爱的Zorgo我真的非常感谢你! 你给我点了一些我没有的地方知道,所以非常多! 1-通过获取网络新闻,我的意思是RSS提要,比如说CNN新闻等。 2-请不要理解你的意思是什么在客户端或服务器端执行提取。我想做的是接收CNN或BBC的新闻(RSS)并将其显示在另一个网站上;例如,在我自己的网站上显示新闻。 如果您不介意,只需添加即可。你对PYTHON语言有什么看法,我读到有一个名为URLLIB&URLLIB2的模块可以用来执行这个任务。 再次和agian感谢很多时间和帮助Zoltan Dear Zorgo i would really like to thank you very much! You have lighten me some spots that i didnt know, so thanx alot! 1- By fetching web news, i mean RSS feeds, let say CNN news etc. 2- Kindly i didnt understand what u meant by " performing the fetch on client or server side". what i want to do is taking the news (RSS) of CNN or BBC and display them on another web site; for example display the news on my own website. Just to add if u dont mind. what do u thing about PYTHON language, i read that there is a module called "URLLIB & URLLIB2" that can be used in performing this task. Again and agian thank alot for ur time and help Zoltan

更多推荐

用于获取Web新闻并在另一个站点中显示它的脚本

本文发布于:2023-11-28 13:09:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642540.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:并在   脚本   站点   新闻   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!