Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108269 > unrolled thread

How to see html code under the particular web page element?

Started byzljubisic@gmail.com
First post2016-05-07 07:27 -0700
Last post2016-05-07 15:33 -0400
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  How to see html code under the particular web page element? zljubisic@gmail.com - 2016-05-07 07:27 -0700
    Re: How to see html code under the particular web page element? Larry Martell <larry.martell@gmail.com> - 2016-05-07 12:37 -0400
      Re: How to see html code under the particular web page element? zljubisic@gmail.com - 2016-05-07 12:27 -0700
    Re: How to see html code under the particular web page element? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-07 15:33 -0400

#108269 — How to see html code under the particular web page element?

Fromzljubisic@gmail.com
Date2016-05-07 07:27 -0700
SubjectHow to see html code under the particular web page element?
Message-ID<5eaf19c1-b57d-4771-859b-ae55972234e8@googlegroups.com>
Hi,

on page:
https://hrti.hrt.hr/#/video/show/2203605/trebizat-prica-o-jednoj-vodi-i-jednom-narodu-dokumentarni-film

there is a picture and in the middle of the picture there is a text "Prijavite se za gledanje!"

If I open the page in firefox and then use menu Tools > Web developer > Page source, there is no such text, but if i right click on the "Prijavite se za gledanje!" and than choose "Inspect element" I get the following html code:

<a ng-click="::getBuyOptions()" data-toggle="modal" data-target="#loginModal" class="btn btn-green buy-options sign-in-vod ng-binding">Prijavite se za gledanje!</a>

What is the difference between firfox Page source and inspect element?
How go get html with "Prijavite se za gledanje!" element by using python 3?

Regerds.

[toc] | [next] | [standalone]


#108274

FromLarry Martell <larry.martell@gmail.com>
Date2016-05-07 12:37 -0400
Message-ID<mailman.456.1462639112.32212.python-list@python.org>
In reply to#108269
On Sat, May 7, 2016 at 10:27 AM,  <zljubisic@gmail.com> wrote:
> Hi,
>
> on page:
> https://hrti.hrt.hr/#/video/show/2203605/trebizat-prica-o-jednoj-vodi-i-jednom-narodu-dokumentarni-film
>
> there is a picture and in the middle of the picture there is a text "Prijavite se za gledanje!"
>
> If I open the page in firefox and then use menu Tools > Web developer > Page source, there is no such text, but if i right click on the "Prijavite se za gledanje!" and than choose "Inspect element" I get the following html code:
>
> <a ng-click="::getBuyOptions()" data-toggle="modal" data-target="#loginModal" class="btn btn-green buy-options sign-in-vod ng-binding">Prijavite se za gledanje!</a>
>
> What is the difference between firfox Page source and inspect element?
> How go get html with "Prijavite se za gledanje!" element by using python 3?

There's probably some Angular JS code involved with this. Look at the
source (not the page source, the source code in the developer's
tools).

[toc] | [prev] | [next] | [standalone]


#108287

Fromzljubisic@gmail.com
Date2016-05-07 12:27 -0700
Message-ID<11a08d8e-9960-4c4f-a95c-254f5c0abd33@googlegroups.com>
In reply to#108274
> There's probably some Angular JS code involved with this. Look at the
> source (not the page source, the source code in the developer's
> tools).

Is it possible to get that code using python?

[toc] | [prev] | [next] | [standalone]


#108288

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2016-05-07 15:33 -0400
Message-ID<mailman.466.1462649600.32212.python-list@python.org>
In reply to#108269
On Sat, 7 May 2016 07:27:53 -0700 (PDT), zljubisic@gmail.com declaimed the
following:

>Hi,
>
>on page:
>https://hrti.hrt.hr/#/video/show/2203605/trebizat-prica-o-jednoj-vodi-i-jednom-narodu-dokumentarni-film
>
>there is a picture and in the middle of the picture there is a text "Prijavite se za gledanje!"
>
>If I open the page in firefox and then use menu Tools > Web developer > Page source, there is no such text, but if i right click on the "Prijavite se za gledanje!" and than choose "Inspect element" I get the following html code:
>
><a ng-click="::getBuyOptions()" data-toggle="modal" data-target="#loginModal" class="btn btn-green buy-options sign-in-vod ng-binding">Prijavite se za gledanje!</a>
>
>What is the difference between firfox Page source and inspect element?

	Page source is the "file" that the server sent. Inspect element is the
DOM element manipulated by the various Javascript programs that the page
invokes. You'd have to somehow download each of the .js files and examine
them to find out where (or how) they create the displayed DOM information.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web