access Java Eclipse on pages

So here's my question: I am very interested in computer science and programming, after issuing a search so I wanted to find out whether you can access web pages and there may eg reading labels.

Consider the following story:

It applies anywhere as Youtuber but must meet a minimum number. That is the program then check by going to the specified page of youtubers and there reads the chip. The class is yes: "yt-subscription-button-subscriber-count-branded horizontal yt-uix-tooltip" and you should then access the Title or tabindex ...

Is that even possible? If so, I ask for an explanation or an ex. How that works ... possibly even unnecessary programs or similar ...

The best answer

I think it is easiest with JavaScript that is "injected" when the page.

var eineliste = document.getElementsByClassName('meineklasse'); var zahldieichwill = eineliste[0].innerHTML;

So hast du eine Variable mit dem gewünschten Wert. Eigentlich ist Java für so etwas aber zu komplex, ein einfaches JavaScript reicht ja.

I once made with VBScript something like that, maybe you can implement the in java:

set ie = CreateObject ( "InternetExplorer.Application")
ie.navigate url
ie.visible = true
Do Until IE.readyState = 4
loop
Do while IE.busy
loop
classarr = ie.document.getElementsByClassName ( "yt-subscription-button-subscriber-count-branded horizontal")

classarr is an array of HTML tags with this class. So ambiguous. It would be better to have with getElementByID to the ID of the desired tags to access, this would however have the (unique) ID attribute.

Okay, here (

http: //stackoverflow.com/questions/238547/how-do-you-programmatically-download-a ...

) You can find information as you code the HTML of the website in a Java String get. The string you are looking then after cutting with the right ID and extracts the contents of the span. Note, however, that you have to change your program as soon as YouTube change the ID on its website.

Date: 2019-06-15 Views: 2

Related articles

  • Difference between Java editor and Java Eclipse? 2012-01-14

    What is the difference between the Java editor and Java Eclipse? Is there ever a significant difference or can I stuff of Java Eclipse also in a normal Java editor writing any error messages? --answer-- http://www./tipp/bevor-man-eine-frage-stellt Fi

  • Facebook account disabled, how do I get access to my Facebook pages? 2012-11-12

    My Facebook account has been banned, but I run my business Facebook pages. How do I get access to my Facebook pages, for which I also pay advertising? --answer-- No Ahung, this question I ask myself.

  • Java Eclipse images and animations create / insert 2013-12-09

    Hiya, can anyone help me & me either briefly explain how to create images or animations in Java Eclipse or inserts or a good site with source code to show me where is something explained? It simply is just about the a window appears with a picture /

  • Java Eclipse! = 2014-01-23

    Hey I've got a question. what it means for Java Eclipse! = there is? For example: (number of players = random number!) in a random game? could on Google find no reasonable answer: / Thanks in advance :) --answer-- Kuck times here. http://www.javaschu

  • java eclipse println not working 2014-05-02

    hi I got me a two days java eclipse but the System.out.println works nicht.Der error is caused when out. appear but I did everything as the tutorial. I hope you can help me. (Note: I'm with is not so familiar so I do not know if I have this question

  • Create a Selectable List with Jave Eclipse? 2015-01-25

    I want to create in Jave with Eclipse a list, this is can be selectable someone give me advice how I do it or knows sites where it is well explained? To illustrate: I have a product A, which is in range B. I Choose now this product should this be sto

  • JAVA Sichherheits- Update page no longer closes? 2014-09-07

    As I looked at Burning Series some consequences, security update page was at one time the Java in my open pages. You can not be closed, forcing the update, but the Internet read that this is a trap. Since I can not just close the page, I do not know

  • Java Eclipse Calculator 2014-09-16

    I'm jz an internship and need a calculator with Java in Eclipse programming. Have everything ready so far, the first number that was typed, we saved with the click of arithmetic operators and deleted from the box, with number two happened the same on

  • huh? my java eclipse is somehow broken 2015-02-10

    hey people inside whenever I eclipse and an example script rise up then there are so ridiculous English words which are spelled funny and no ordinary German text. is there any thing broken? --answer-- I also had time - you buy just a new windofs or M

Links

Domicile|Sante|

Copyright (C) 2019 m3tch.com, All Rights Reserved.

M3tch all rights reserved.

processed in 0.752 (s). 10 q(s)