简体   繁体   English

是否建议为此目的使用“插件”或单独的网站?

[英]Is it advisable to use a 'plugin' for this purpose or a seperate website?

Our college has a website with our marks in it. 我们学院有一个带有我们标记的网站。 We don't have access to the server of the site. 我们无权访问该站点的服务器。

I can only access the source code of our marks' site page. 我只能访问我们商标网站页面的源代码。

I wish to calculate the total of all the marks by parsing the numbers from the source code(HTML)and adding it. 我希望通过解析源代码(HTML)中的数字并将其相加来计算所有标记的总数。

1)Is it advisable to build a plugin for that ?? 1)建议为此建立一个插件吗?

Or do we need to build a site?? 还是我们需要建立一个网站?

2)Is it possible to parse HTML that way to find out the marks?? 2)是否可以通过这种方式解析HTML以找出标记?

Some additional details : We access the site for our marks , but we dont get the total of all the subjects.So,we open calculator and then manually enter the marks. 其他一些详细信息 :我们会在网站上获得我们的分数,但是我们没有获得所有主题的总和。因此,我们打开计算器,然后手动输入分数。

I want to build something that would display the total of all the marks. 我想构建一些可以显示所有标记总数的东西。 So,I want users to know their total when they are on the college's site itself. 因此,我希望用户在他们位于学院网站上时知道他们的总数。

Which solution would be best??A plugin or site or any other? 哪种解决方案是最好的?插件或网站还是其他?

Thanks in advance! 提前致谢!

This is really a too general question. 这确实是一个太笼统的问题。 But I will do some assumptions... 但是我会做一些假设...

1) If you mean a browser plug-in, probably not. 1)如果您的意思是浏览器插件,可能不是。 Most people would just write a script (using eg Python) to parse the HTML and generate the average. 大多数人只会编写脚本(例如使用Python)来解析HTML并生成平均值。 A plug-in is overkill except if you want it to be easier to use for a lot of people. 插件是多余的,除非您希望它对于许多人来说更易于使用。

2) Parsing HTML is always possible. 2)始终可以解析HTML。 I'm assuming your brains could do it, so a computer can too. 我假设您的大脑可以做到,所以计算机也可以。 There are several HTML-parsers out there. 有几个HTML解析器。 For python this may suffice. 对于python 可能就足够了。 There are probably enough out there for your language of choice. 那里可能有足够的语言供您选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM