Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and fixed.


devel / comp.lang.python / Use Chrome's / Firefox's dev-tools in python

SubjectAuthor
* Use Chrome's / Firefox's dev-tools in pythonmax pothier
`* Re: Use Chrome's / Firefox's dev-tools in pythonChris Angelico
 `* Re: Use Chrome's / Firefox's dev-tools in pythonmax pothier
  +- Re: Use Chrome's / Firefox's dev-tools in pythonChris Angelico
  +* Re: Use Chrome's / Firefox's dev-tools in pythonMartin Di Paola
  |`* Re: Use Chrome's / Firefox's dev-tools in pythonmax pothier
  | `* Re: Use Chrome's / Firefox's dev-tools in pythonMartin Di Paola
  |  `* Re: Use Chrome's / Firefox's dev-tools in pythonmax pothier
  |   `- Re: Use Chrome's / Firefox's dev-tools in pythonmax pothier
  `* Re: Use Chrome's / Firefox's dev-tools in pythonCurt
   `* Re: Use Chrome's / Firefox's dev-tools in pythonmax pothier
    `* Re: Use Chrome's / Firefox's dev-tools in pythonCurt
     `* Re: Use Chrome's / Firefox's dev-tools in pythonmax pothier
      `- Re: Use Chrome's / Firefox's dev-tools in pythonCurt

1
Use Chrome's / Firefox's dev-tools in python

<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13207&group=comp.lang.python#13207

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a05:620a:127b:: with SMTP id b27mr6346892qkl.104.1621530520360;
Thu, 20 May 2021 10:08:40 -0700 (PDT)
X-Received: by 2002:a0c:c245:: with SMTP id w5mr6727098qvh.36.1621530520153;
Thu, 20 May 2021 10:08:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Thu, 20 May 2021 10:08:39 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9;
posting-account=w8iC3QkAAACV84KzwIebO5iup_bkMTK0
NNTP-Posting-Host: 2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
Subject: Use Chrome's / Firefox's dev-tools in python
From: contact....@gmail.com (max pothier)
Injection-Date: Thu, 20 May 2021 17:08:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: max pothier - Thu, 20 May 2021 17:08 UTC

My school has a website for homework called pronote (no problem if you don't know it). After logging in on parisclassenumerique.fr (works with selenium but I cant get requests to work), I want to read one of the packets that is sent: All the info about my day, my homework, etc. are in there and it is the perfect file: header request response stack trace

The file's download address looks random. The login works only for a limited period of time in the same browser.

Any ideas for using that tool of Firefox or same of Chrome?

Thanks!

Re: Use Chrome's / Firefox's dev-tools in python

<mailman.260.1621537992.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13210&group=comp.lang.python#13210

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Use Chrome's / Firefox's dev-tools in python
Date: Fri, 21 May 2021 05:12:59 +1000
Lines: 31
Message-ID: <mailman.260.1621537992.3087.python-list@python.org>
References: <491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 395AFfD8huNxdhliy85MQw1Uc9DPRpzHEPXK6OnaPPlw==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=XFZBsxQJ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.065
X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'subject:python': 0.06;
'chrome': 0.09; 'looks': 0.11; 'problem': 0.15; 'chrisa': 0.16;
'easiest': 0.16; 'firefox': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; "it'd": 0.16; 'packets': 0.16;
'received:209.85.166.42': 0.16; 'received:mail-
io1-f42.google.com': 0.16; 'wrote:': 0.16; 'python': 0.16;
'school': 0.23; 'fri,': 0.23; "i'd": 0.23; 'to:addr:python-list':
0.23; 'extension': 0.24; 'header': 0.24; 'code': 0.24; 'depends':
0.26; 'request.': 0.28; 'ideas': 0.29; 'requests': 0.29; 'there':
0.31; 'but': 0.31; 'approach': 0.31; 'subject: / ': 0.32;
'subject:Use': 0.32; 'subject:dev': 0.32; 'to:name:python': 0.32;
'message-id:@mail.gmail.com': 0.33; 'using': 0.33;
'received:209.85.166': 0.33; 'header:In-Reply-To:1': 0.33; 'same':
0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35;
'request': 0.35; 'received:209.85': 0.38; 'read': 0.38; "it's":
0.38; 'received:209': 0.38; 'going': 0.38; 'put': 0.39; 'called':
0.40; 'require': 0.40; 'could': 0.40; 'send': 0.61; 'providing':
0.64; 'willing': 0.64; 'your': 0.64; 'day,': 0.65; 'in.': 0.65;
'cant': 0.69; 'collect': 0.69; 'hybrid': 0.69; 'processing,':
0.69; 'period': 0.71; 'sent:': 0.71; 'tool': 0.72; 'easy': 0.75;
'tools': 0.75; '2021': 0.84; 'perfect': 0.89
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=F2uew5gGcB3Y5V+ZMBDMiDenYKMiXpYvMXaMkXNvBTs=;
b=XFZBsxQJoFmgBk4BNL7kPB9cVqRqtMFgejZDob5INXIN1gCQGA23Znacy2aLd06aRx
MIq8L8LPqadrfjWsnk4sXYSqM7821R0/ydaWE+794IohpznW/FI0P/5D2naEJePAGTt9
hGS2bwh4V7QJoKq9WJwa7ZbJUy+4BP2VmAKDqlY9e/4mXUfKoPmIC21l3cdK63J6QzKZ
xTsIQimXAo4rmCc3ZS2jXfXtFD/MoaVlEX6aSD4aVxEnJXnHifRAQtzvvKyEJAR89VeZ
LQ1JUxVpyI5M4PhqtPOe2EZhN2vapMpzZQ0/q9kteib5BpfmxAv/VgfqRqwFNg7NJF4n
fG4A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=F2uew5gGcB3Y5V+ZMBDMiDenYKMiXpYvMXaMkXNvBTs=;
b=meXIcGTSYjsVG2IUUv36sckg5YjyCqD7ADzuiGYMLetIbndiTBHXKdV2RW6J8afh4B
OI1vWU4Db/It4q8vMxDZymb2uDuxDL0U5sRzcr2RR2S+25ryOJ2aog4GR1t6CcoGghkE
/H+XsgDPVBjh+lHxvRT89Wg4JOl/apHrAHyakV9FkjmxZ4dSbjo0mk1iBtu8beg2vQVS
M9JTrsSHjYRhJshpwZLlzqpo/o8f+AwcvU+Km0idL9fqj8I61IqRQDeD3GY3uHyZER/9
I+X7a9qIpOYjU58xmeUwTNlbM/x2HId0glJj9yxZVIantQ+gGNvVBarYXqKqNkxSnYDK
fPxQ==
X-Gm-Message-State: AOAM530Cn/TAwz0Ikqiw820D5uDABPPEqwsDTsLT38ih+m5xlXTayYKH
xBo/QAQZJvmvmsojNW/hCADZRtuxQxx9k1pH0fs/EKXie1A=
X-Google-Smtp-Source: ABdhPJwZogKwLyIt3Z0LrvOJWnBcT1sWN5E1Jw1sJCkZ40lxs/zTTZ5Y3bcNv22fTQiNTnLgw4HipjyW3ElrhVHxZkI=
X-Received: by 2002:a5d:8a16:: with SMTP id w22mr7147042iod.186.1621537990898;
Thu, 20 May 2021 12:13:10 -0700 (PDT)
In-Reply-To: <491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
X-Mailman-Original-References: <491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
 by: Chris Angelico - Thu, 20 May 2021 19:12 UTC

On Fri, May 21, 2021 at 4:59 AM max pothier <contact.tarneo@gmail.com> wrote:
>
>
>
> My school has a website for homework called pronote (no problem if you don't know it). After logging in on parisclassenumerique.fr (works with selenium but I cant get requests to work), I want to read one of the packets that is sent: All the info about my day, my homework, etc. are in there and it is the perfect file: header request response stack trace
>
> The file's download address looks random. The login works only for a limited period of time in the same browser.
>
> Any ideas for using that tool of Firefox or same of Chrome?
>

Most likely, what you're looking at is going to require some sort of
login token, a cookie or equivalent. It's not going to be easy to
replicate that in Python without actually providing your login
credentials.

I'd say the easiest approach is going to be a hybrid of Python to do
your processing, with some JavaScript to collect the request
information. But it all depends on how much you want to automate this,
and how much effort you're willing to put in. For instance, you could
write a Chrome extension that is aware of the traffic, or perhaps it'd
be sufficient to just paste some JavaScript code into the Dev Tools
console before you send the request.

ChrisA

Re: Use Chrome's / Firefox's dev-tools in python

<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13217&group=comp.lang.python#13217

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:ac8:5fd5:: with SMTP id k21mr10687891qta.231.1621594010992;
Fri, 21 May 2021 03:46:50 -0700 (PDT)
X-Received: by 2002:a0c:e643:: with SMTP id c3mr12126914qvn.18.1621594010804;
Fri, 21 May 2021 03:46:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Fri, 21 May 2021 03:46:50 -0700 (PDT)
In-Reply-To: <mailman.260.1621537992.3087.python-list@python.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9;
posting-account=w8iC3QkAAACV84KzwIebO5iup_bkMTK0
NNTP-Posting-Host: 2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com> <mailman.260.1621537992.3087.python-list@python.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
Subject: Re: Use Chrome's / Firefox's dev-tools in python
From: contact....@gmail.com (max pothier)
Injection-Date: Fri, 21 May 2021 10:46:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 7
 by: max pothier - Fri, 21 May 2021 10:46 UTC

Hello,
Thanks for you answer!
Actually my goal is not to automatically get the file once I open the page, but more to periodically check the site and get a notification when there's new homework or, at the morning, know when an hour is cancelled, so I don't want to have to open the browser every time.
I have pretty good javascript knowledge so if you could better explain that idea, it would be a great help.

Re: Use Chrome's / Firefox's dev-tools in python

<mailman.271.1621634841.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13225&group=comp.lang.python#13225

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Use Chrome's / Firefox's dev-tools in python
Date: Sat, 22 May 2021 08:07:07 +1000
Lines: 37
Message-ID: <mailman.271.1621634841.3087.python-list@python.org>
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<CAPTjJmrc2_Dy93=xgjQY4EUXLvT2N5nrm8q0z_R8F0fNALeWJA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de qCm3pEpGcq4ERvDChEtbeAGboS42X0Y5qy9KOUq5mp2A==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=N7RFd/6Z;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.077
X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'subject:python': 0.06;
'http': 0.07; 'check,': 0.09; 'chrome': 0.09; 'api.': 0.16;
'chrisa': 0.16; 'for.': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; 'here.)': 0.16; 'script.': 0.16;
'third,': 0.16; 'wrote:': 0.16; 'python': 0.16; 'figure': 0.18;
'maybe': 0.20; 'option': 0.21; 'sat,': 0.23; 'to:addr:python-
list': 0.23; 'goal': 0.24; 'help.': 0.24; 'idea': 0.25; 'depends':
0.26; 'requests': 0.29; 'but': 0.31; 'explain': 0.31; 'script':
0.32; 'subject: / ': 0.32; 'subject:Use': 0.32; 'subject:dev':
0.32; 'to:name:python': 0.32; 'message-id:@mail.gmail.com': 0.33;
'received:209.85.166': 0.33; 'work.': 0.33; 'server': 0.33;
'header:In-Reply-To:1': 0.33; 'received:google.com': 0.34; '22,':
0.35; 'from:addr:gmail.com': 0.35; 'request': 0.35; "that's":
0.37; 'received:209.85': 0.38; 'hard': 0.38; 'file': 0.38; "it's":
0.38; 'received:209': 0.38; 'going': 0.38; 'could': 0.40;
'pretty': 0.40; 'best': 0.61; 'morning,': 0.61; 'check': 0.62;
'lot': 0.62; 'time.': 0.63; 'browser': 0.64; 'once': 0.64; 'your':
0.64; 'depending': 0.65; 'well': 0.66; 'daily': 0.66; 'great':
0.67; 'plus': 0.68; 'site': 0.69; 'manual': 0.71; '(you': 0.77;
'queries': 0.81; '2021': 0.84; 'extra': 0.84; 'answer!': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=6oaB+e4kAeaX06eFmabkJ4t6/XWEdLMUeQxHDKivLmI=;
b=N7RFd/6ZRiExL5piGeRM6guB0t2pZldbB2++DCYlLq6wGUogu/ZR0Nc6DPtVEYn6Hp
G5TAc1fPbk648pDobLiO0d4X9rdVl1/SLnkcJrHvpw6sIleYs2pecmymFp+Uniw0uaWP
/2EC5sBa2BpHj7C58uWXbAo6EoeKFRsFU0CF5xDZxgAryDH5l+D43kmqGSst/wprdcBM
g5VXtxPHvlAP6mWQqcckyre4XKUbmtECmn4409PSep91u+GeQ733iI51hvGT69Vqvlob
jY34z4KuDFt4Ikpapxv2IFkTzjgLRn1dgXPrJZH1fQNOI2mC7fbbORwWkU4oxR1v1aGX
OhhQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=6oaB+e4kAeaX06eFmabkJ4t6/XWEdLMUeQxHDKivLmI=;
b=P8jhAYlXLh8AVhKvsnp2xt/rL2oL/+69XSl5N26wdqWYSWFtlqr0XvtPWggjgSfr30
sJGOhXAJa8Yf+WhDqy+gvBogX75NZXeiov+OiGhqRoKUqHbAm8LIcuDVgEUTfRi4qb0z
/Oc4ueOkoNv4zfDKYT9cnA0upbkrJ70LUf1na/bh8+krCdHkJD3+Ge0n++nEdicXNzO4
l5RdeIFsFN0Jfqc0/LhfINMW+iSgjLUHteJj19CvkF9PZV1ZzwzTO+CbVTTnYQNKVYVi
kSrFweug252cD/S9nTfvYCz2h4Sj9XTG6GEpq9D+F09bNiXUOD6OY/c6SLH/kNmlIBiV
QG0Q==
X-Gm-Message-State: AOAM530XeyhljWXppFTLwpC2T7CzyJh1yK5wjJHRFTs+3WATKYAQ/SZ/
DXNAweDZL9XDP+dz2SdTzwtJrL/dnihHvjMZOXQBq8Pjy1c=
X-Google-Smtp-Source: ABdhPJwNr6AyAhGb4wTaxK+esp4+NVj8uCtq2ccp6eLr5tJGLfUPWoWtbpCQeNsvLo7Nz4wjcpfZaD4xRoVU0SYc0jc=
X-Received: by 2002:a05:6e02:1d1a:: with SMTP id
i26mr1331953ila.180.1621634838569;
Fri, 21 May 2021 15:07:18 -0700 (PDT)
In-Reply-To: <644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmrc2_Dy93=xgjQY4EUXLvT2N5nrm8q0z_R8F0fNALeWJA@mail.gmail.com>
X-Mailman-Original-References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
 by: Chris Angelico - Fri, 21 May 2021 22:07 UTC

On Sat, May 22, 2021 at 3:55 AM max pothier <contact.tarneo@gmail.com> wrote:
>
> Hello,
> Thanks for you answer!
> Actually my goal is not to automatically get the file once I open the page, but more to periodically check the site and get a notification when there's new homework or, at the morning, know when an hour is cancelled, so I don't want to have to open the browser every time.
> I have pretty good javascript knowledge so if you could better explain that idea, it would be a great help.
>

Ahh, now I better understand your purpose. Hmm.

First and by far the best option would be to see if there's any sort
of (documented or undocumented) API. See if you can figure out how the
requests are being done, and try to find a pre-request request that is
hinting at the download address. (You might have to do some
exploration here.)

Secondly, it may be possible to do an occasional manual check, but
then keep your login cookie alive by periodic queries by your
automated script. No idea how well that would work.

Third, your worst case might be to do most of the work in JavaScript,
maybe as a Chrome extension, but then have it call a Python script
(via an HTTP request, since that's how JavaScript in a browser can
best notify anything) to do whatever extra work you need Python for.
Not sure how well that would work.

Unfortunately it depends a LOT on the homework server you're working
with, so it's hard to be specific. On the plus side, though, you're
going to learn all kinds of things along the way! Or maybe that's
another downside, depending on how Daily WTF-worthy the site is....

ChrisA

Re: Use Chrome's / Firefox's dev-tools in python

<mailman.274.1621713194.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13231&group=comp.lang.python#13231

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: martinp....@gmail.com (Martin Di Paola)
Newsgroups: comp.lang.python
Subject: Re: Use Chrome's / Firefox's dev-tools in python
Date: Sat, 22 May 2021 19:53:04 +0000
Lines: 35
Message-ID: <mailman.274.1621713194.3087.python-list@python.org>
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<20210522195304.qlq4aot44bs2e5xa@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
X-Trace: news.uni-berlin.de J/ND996B2v5Fhidw5nUqTwPANis4kbNad3w+Tl9jBUMg==
Return-Path: <martinp.dipaola@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=ZzRtsVb+;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.041
X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'url-ip:140.82/16': 0.03;
'subject:python': 0.06; 'url:mailman': 0.09; '-0700,': 0.09;
'faced': 0.09; 'inject': 0.09; 'url-ip:140/8': 0.12; 'url:github':
0.13; 'problem': 0.15; 'comparing': 0.16; 'script,': 0.16;
'script.': 0.16; 'slow': 0.16; 'wrote:': 0.16; 'url:listinfo':
0.16; 'python': 0.16; 'message-id:@gmail.com': 0.19; 'url-
ip:188.166.95.178/32': 0.20; 'url-ip:188.166.95/24': 0.20; 'url-
ip:188.166/16': 0.23; 'fri,': 0.23; 'to:addr:python-list': 0.23;
'goal': 0.24; 'run': 0.24; 'help.': 0.24; 'thanks!': 0.25;
'saying': 0.28; 'url-ip:188/8': 0.29; 'blog': 0.31; 'think': 0.31;
'but': 0.31; 'explain': 0.31; "i'm": 0.32; 'do.': 0.32;
'manipulate': 0.32; 'subject: / ': 0.32; 'subject:Use': 0.32;
'subject:dev': 0.32; 'using': 0.33; 'header:In-Reply-To:1': 0.33;
'particular': 0.34; 'months': 0.34; 'same': 0.34;
'received:google.com': 0.34; 'running': 0.35;
'received:209.85.160': 0.35; 'url-ip:104.17/16': 0.35; 'url:)':
0.35; 'yes,': 0.35; 'from:addr:gmail.com': 0.35; 'trying': 0.36;
'received:209.85': 0.38; 'file': 0.38; 'received:209': 0.38;
'list': 0.39; 'called': 0.40; 'could': 0.40; 'pretty': 0.40;
'morning,': 0.61; 'check': 0.62; 'time.': 0.63; 'top': 0.63;
'browser': 0.64; 'once': 0.64; 'ago.': 0.65; 'plan': 0.65;
'similar': 0.66; 'great': 0.67; 'day': 0.69; 'site': 0.69; '100%':
0.69; 'implemented': 0.69; 'day.': 0.74; 'little': 0.75; '2021':
0.84; 'answer!': 0.84; 'martin.': 0.84; 'articles': 0.86; 'thin':
0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=date:from:to:subject:message-id:mail-followup-to:'user-agent
:references:mime-version:content-disposition:in-reply-to;
bh=+vj3sCMbUhndPGlmrhtDdfcnH8UsDO/O15ywWCl25A8=;
b=ZzRtsVb+fAHK4b3pfVJoDaK1H9Ems2wb0Qr8sHsw/CMkJX5JSY70SqVAGkhVr6X+hU
RCFDIXWAYwgXttfvIzqi72tMRJkbmsett6kliSxr4z+yIO1cg1fdVP/zDIbxNNeaNvcL
irUDM1tZP21K+9AVbQAL3ve8DLuAl4dQXtWXzsb0ZAr7HSe45nBFyHs7x4f85QCataoL
vnaeFjDF90GSx1iA9KgqbcrzLsB2AAOSGJM48SyFpJm2d29a4Sr9LayTjH+2B0JHmDrE
AAp9NgiV4Gy0hrIE58krfbxEDJ+ZxE5QCgB4rf4U3tMixrzsfRwvYahQzuwtMvSdNDAC
W4SA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to
:'user-agent:references:mime-version:content-disposition:in-reply-to;
bh=+vj3sCMbUhndPGlmrhtDdfcnH8UsDO/O15ywWCl25A8=;
b=Gq4M6xfu5WflYlWpJl/eCxogZurCojao5bLS4pjijEl6s+a56BHm9d8OM5IlxJS7iq
x+uLsUgC4Tb0e2GrLImx8XNUjfhHt6XH5/FY/8uEBzbfItMN0/52Gx1WlGwCUtW+afCa
zPtXd22oQiN/bdra3zO5HJDnflfDYgVXJy9+/AZ1SUcA9Sv3TKEJfSvI3aI77nnooj1Z
ktbTURqdySCnyO1awufHZwwy+E1aHsg7qRKEFzI5eptWiPM7PdwBaocuS3yWzTyy07Dr
vS61p9g4u8V6lgYHChD5T9t6H0FMjgx7T1Ilstsxa0GypKKxKtKFt0jJDNaDHoEIuNZ9
OWiA==
X-Gm-Message-State: AOAM532rbbAUON0HSI7SMcGeoyXPLYY4rbT5DvOeUP8cBlLvqKIAsJ7t
HXBZyRane45xsS7Ykihvi5AiUprOLK72XA==
X-Google-Smtp-Source: ABdhPJycR52XdsPR4jF8OeheiOlmq/MsEG8qiQe0ednXel66bzreT7azbnnX+5Ff9kkR7AsevPrkwQ==
X-Received: by 2002:ac8:474d:: with SMTP id k13mr7496775qtp.229.1621713191257;
Sat, 22 May 2021 12:53:11 -0700 (PDT)
Mail-Followup-To: python-list@python.org
'User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.5.2 Lightning/5.4.5.2'
Content-Disposition: inline
In-Reply-To: <644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20210522195304.qlq4aot44bs2e5xa@gmail.com>
X-Mailman-Original-References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
 by: Martin Di Paola - Sat, 22 May 2021 19:53 UTC

Hello,

I'm not 100% sure but I think that I understand what you are trying to
do. I faced the same problem a few months ago.

I wanted to know when a particular blog posted a new article.

My plan was to query the blog every day running a python script, get the
list of articles it has and comparing them with the list of the previous
day.

I used Selenium (https://selenium-python.readthedocs.io/) and on top of
that I implemented a thin layer to manipulate the web page called
"selectq" (https://github.com/SelectQuery/sQ)

You could write a similar script.

Using Selenium or selectq will open a web browser but given that it is
fully automated, it should not be a problem (well, yes, it may run a
little slow however).

The good side is that both can inject javascript if you have to.

Would this work for you or am I saying nonsense?

Thanks!
Martin.

On Fri, May 21, 2021 at 03:46:50AM -0700, max pothier wrote:
>Hello,
>Thanks for you answer!
>Actually my goal is not to automatically get the file once I open the page, but more to periodically check the site and get a notification when there's new homework or, at the morning, know when an hour is cancelled, so I don't want to have to open the browser every time.
>I have pretty good javascript knowledge so if you could better explain that idea, it would be a great help.
>--
>https://mail.python.org/mailman/listinfo/python-list

Re: Use Chrome's / Firefox's dev-tools in python

<slrnsak4to.2b0.curty@einstein.electron.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13240&group=comp.lang.python#13240

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp1-1.free.fr!not-for-mail
Newsgroups: comp.lang.python
From: cur...@free.fr (Curt)
Subject: Re: Use Chrome's / Firefox's dev-tools in python
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
Organization: Unorganized
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <slrnsak4to.2b0.curty@einstein.electron.org>
Date: 23 May 2021 08:35:04 GMT
Lines: 27
NNTP-Posting-Date: 23 May 2021 10:35:04 CEST
NNTP-Posting-Host: 91.160.120.178
X-Trace: 1621758904 news-3.free.fr 21585 91.160.120.178:57846
X-Complaints-To: abuse@proxad.net
 by: Curt - Sun, 23 May 2021 08:35 UTC

On 2021-05-21, max pothier <contact.tarneo@gmail.com> wrote:
> Hello, Thanks for you answer! Actually my goal is not to
> automatically get the file once I open the page, but more to
> periodically check the site and get a notification when there's new
> homework or, at the morning, know when an hour is cancelled, so I
> don't want to have to open the browser every time. I have pretty good
> javascript knowledge so if you could better explain that idea, it
> would be a great help.

It seems there's a smartphone app that does what you want, so this wheel
may already have been invented (in a manner of speaking).

Maybe you are already aware of this and are looking for a way to improve
your hacking skills, or perhaps you don't have a
smartphone--unlikely!--or want your notifications on your computer
rather than your phone, etc.

https://www.parisclassenumerique.fr/lutece/jsp/site/Portal.jsp?page_id=9

Notifications

Afin de rester informé en temps réel de tous les événements qui vous
concernent (actualités, messages, blogs, espace documentaire…), il est
nécessaire d’activer sur votre mobile les notifications pour
l’application (par défaut, à votre arrivée sur l’application, toutes
les notifications sont activées).

Re: Use Chrome's / Firefox's dev-tools in python

<5a03d59e-dc6c-47b6-ac14-35e26c9c13d0n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13241&group=comp.lang.python#13241

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a05:620a:127b:: with SMTP id b27mr22309285qkl.104.1621759009283; Sun, 23 May 2021 01:36:49 -0700 (PDT)
X-Received: by 2002:a05:620a:11b5:: with SMTP id c21mr6623578qkk.32.1621759009082; Sun, 23 May 2021 01:36:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Sun, 23 May 2021 01:36:48 -0700 (PDT)
In-Reply-To: <mailman.274.1621713194.3087.python-list@python.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:a69:ec00:b541:d52c:d55f:7d34; posting-account=w8iC3QkAAACV84KzwIebO5iup_bkMTK0
NNTP-Posting-Host: 2a01:cb04:a69:ec00:b541:d52c:d55f:7d34
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com> <491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com> <mailman.260.1621537992.3087.python-list@python.org> <20210522195304.qlq4aot44bs2e5xa@gmail.com> <644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com> <mailman.274.1621713194.3087.python-list@python.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5a03d59e-dc6c-47b6-ac14-35e26c9c13d0n@googlegroups.com>
Subject: Re: Use Chrome's / Firefox's dev-tools in python
From: contact....@gmail.com (max pothier)
Injection-Date: Sun, 23 May 2021 08:36:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 10
 by: max pothier - Sun, 23 May 2021 08:36 UTC

Hi,
Seems like that could be a method of doing things. Just one clarification: the website has unselectable text, looks like it's an image strangely generated, so if I can get the packet with it, it would be perfect. As I said (I think), logging in with Selenium was already possible, and I could get a screenshot of the page after logging in.
If you got this working like a packet listener in browser capable of seeing packet data, I'd gladly accept the code.
I've tried to do this for 3 years now (since I came into that school basically), looks like it's coming to an end!
Thanks!

Re: Use Chrome's / Firefox's dev-tools in python

<33b3c1b3-d715-4eb3-9e40-a797e595f75bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13242&group=comp.lang.python#13242

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a0c:e40e:: with SMTP id o14mr23372449qvl.30.1621759144981; Sun, 23 May 2021 01:39:04 -0700 (PDT)
X-Received: by 2002:a05:6214:18e5:: with SMTP id ep5mr23268885qvb.24.1621759144857; Sun, 23 May 2021 01:39:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Sun, 23 May 2021 01:39:04 -0700 (PDT)
In-Reply-To: <slrnsak4to.2b0.curty@einstein.electron.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:a69:ec00:b541:d52c:d55f:7d34; posting-account=w8iC3QkAAACV84KzwIebO5iup_bkMTK0
NNTP-Posting-Host: 2a01:cb04:a69:ec00:b541:d52c:d55f:7d34
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com> <491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com> <mailman.260.1621537992.3087.python-list@python.org> <644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com> <slrnsak4to.2b0.curty@einstein.electron.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <33b3c1b3-d715-4eb3-9e40-a797e595f75bn@googlegroups.com>
Subject: Re: Use Chrome's / Firefox's dev-tools in python
From: contact....@gmail.com (max pothier)
Injection-Date: Sun, 23 May 2021 08:39:04 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: max pothier - Sun, 23 May 2021 08:39 UTC

@Curt: That is notifications for the ENT app, I want the notifications for the app named ProNote. ENT is for e-mails and Pronote for homework, quotes, etc.

Re: Use Chrome's / Firefox's dev-tools in python

<slrnsak8bk.2b0.curty@einstein.electron.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13243&group=comp.lang.python#13243

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp1-2.free.fr!not-for-mail
Newsgroups: comp.lang.python
From: cur...@free.fr (Curt)
Subject: Re: Use Chrome's / Firefox's dev-tools in python
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<slrnsak4to.2b0.curty@einstein.electron.org>
<33b3c1b3-d715-4eb3-9e40-a797e595f75bn@googlegroups.com>
Organization: Unorganized
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <slrnsak8bk.2b0.curty@einstein.electron.org>
Date: 23 May 2021 09:33:40 GMT
Lines: 27
NNTP-Posting-Date: 23 May 2021 11:33:40 CEST
NNTP-Posting-Host: 91.160.120.178
X-Trace: 1621762420 news-3.free.fr 27435 91.160.120.178:52187
X-Complaints-To: abuse@proxad.net
 by: Curt - Sun, 23 May 2021 09:33 UTC

On 2021-05-23, max pothier <contact.tarneo@gmail.com> wrote:
> @Curt: That is notifications for the ENT app, I want the notifications
> for the app named ProNote. ENT is for e-mails and Pronote for
> homework, quotes, etc.

https://doc.index-education.com/fr-fr/pn/2018/N/Notification.htm

Notifications dans PRONOTE 
Paramétrer les notifications
Vous êtes notifié lorsque vous recevez un message, une information, un
sondage ou un document.

1. Rendez-vous dans le menu Mes préférences > communication >
Messagerie.

2. Cochez le ou les modes de notification souhaités.

....

Notification via l'application (parents / élèves / professeurs)
Dès la rentrée, un système de notifications sur mobile permettra aux
parents, élèves et professeurs d'avoir une notification sur leur
téléphone à l'arrivée d'un nouveau message ou d'une nouvelle
information.

Re: Use Chrome's / Firefox's dev-tools in python

<4b3efab2-21a7-4f5e-ab27-10d742f00721n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13244&group=comp.lang.python#13244

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a0c:9e0f:: with SMTP id p15mr24655226qve.33.1621774013301;
Sun, 23 May 2021 05:46:53 -0700 (PDT)
X-Received: by 2002:a37:9c84:: with SMTP id f126mr24415236qke.240.1621774013095;
Sun, 23 May 2021 05:46:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Sun, 23 May 2021 05:46:52 -0700 (PDT)
In-Reply-To: <slrnsak8bk.2b0.curty@einstein.electron.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:a69:ec00:b541:d52c:d55f:7d34;
posting-account=w8iC3QkAAACV84KzwIebO5iup_bkMTK0
NNTP-Posting-Host: 2a01:cb04:a69:ec00:b541:d52c:d55f:7d34
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com> <mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com> <slrnsak4to.2b0.curty@einstein.electron.org>
<33b3c1b3-d715-4eb3-9e40-a797e595f75bn@googlegroups.com> <slrnsak8bk.2b0.curty@einstein.electron.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4b3efab2-21a7-4f5e-ab27-10d742f00721n@googlegroups.com>
Subject: Re: Use Chrome's / Firefox's dev-tools in python
From: contact....@gmail.com (max pothier)
Injection-Date: Sun, 23 May 2021 12:46:53 +0000
Content-Type: text/plain; charset="UTF-8"
 by: max pothier - Sun, 23 May 2021 12:46 UTC

Already tried this, only works for messages and not for homework etc.

Re: Use Chrome's / Firefox's dev-tools in python

<slrnsakqk1.2b0.curty@einstein.electron.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13245&group=comp.lang.python#13245

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Newsgroups: comp.lang.python
From: cur...@free.fr (Curt)
Subject: Re: Use Chrome's / Firefox's dev-tools in python
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<slrnsak4to.2b0.curty@einstein.electron.org>
<33b3c1b3-d715-4eb3-9e40-a797e595f75bn@googlegroups.com>
<slrnsak8bk.2b0.curty@einstein.electron.org>
<4b3efab2-21a7-4f5e-ab27-10d742f00721n@googlegroups.com>
Organization: Unorganized
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <slrnsakqk1.2b0.curty@einstein.electron.org>
Date: 23 May 2021 14:45:21 GMT
Lines: 12
NNTP-Posting-Date: 23 May 2021 16:45:21 CEST
NNTP-Posting-Host: 91.160.120.178
X-Trace: 1621781121 news-4.free.fr 3268 91.160.120.178:60831
X-Complaints-To: abuse@proxad.net
 by: Curt - Sun, 23 May 2021 14:45 UTC

On 2021-05-23, max pothier <contact.tarneo@gmail.com> wrote:
> Already tried this, only works for messages and not for homework etc.

https://play.google.com/store/apps/details?id=com.androz2091.pronote_notifications&gl=FR

Notifications pour Pronote vous permet de recevoir des notifications
push lorsqu'une nouvelle note ou un nouveau *devoir* est ajouté sur
Pronote ! Soyez informés en direct et évitez de vous connecter 50 fois
par semaine pour voir si le prof d'histoire géo a enfin mis les notes du
contrôle 😄

Et voilà l'appli qui fait tout !

Re: Use Chrome's / Firefox's dev-tools in python

<mailman.286.1621820983.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13257&group=comp.lang.python#13257

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: martinp....@gmail.com (Martin Di Paola)
Newsgroups: comp.lang.python
Subject: Re: Use Chrome's / Firefox's dev-tools in python
Date: Mon, 24 May 2021 01:49:35 +0000
Lines: 39
Message-ID: <mailman.286.1621820983.3087.python-list@python.org>
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<20210522195304.qlq4aot44bs2e5xa@gmail.com>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<mailman.274.1621713194.3087.python-list@python.org>
<5a03d59e-dc6c-47b6-ac14-35e26c9c13d0n@googlegroups.com>
<20210524014935.xinvyvf2unq3ltp5@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de JGwfLsyIeTFoDn9yoM53SAGhbe2Z2yzK/xUb1p3AB75g==
Return-Path: <martinp.dipaola@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=jgzCNWSi;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.023
X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:python': 0.06;
'sun,': 0.07; 'translate': 0.07; 'url:mailman': 0.09; '-0700,':
0.09; 'example:': 0.09; 'image.': 0.09; 'messages.': 0.09;
'steps': 0.10; 'looks': 0.11; 'possible,': 0.14; 'css': 0.16;
'easier.': 0.16; 'image,': 0.16; 'received:209.85.222.176': 0.16;
'received:mail-qk1-f176.google.com': 0.16; 'such,': 0.16;
'url:page_id': 0.16; 'wrote:': 0.16; 'that.': 0.16;
'url:listinfo': 0.16; 'message-id:@gmail.com': 0.19; 'code.':
0.19; 'url': 0.20; 'url-ip:188.166.95.178/32': 0.20; 'url-
ip:188.166.95/24': 0.20; 'school': 0.23; 'url-ip:188.166/16':
0.23; 'basically': 0.23; "i'd": 0.23; 'to:addr:python-list': 0.23;
'cannot': 0.24; 'tried': 0.26; 'url-ip:188/8': 0.29; 'coming':
0.29; 'this.': 0.29; 'text': 0.29; 'it,': 0.31; 'there': 0.31;
'stuff': 0.31; 'but': 0.31; '23,': 0.32; 'do.': 0.32; 'subject: /
': 0.32; 'subject:Use': 0.32; 'subject:dev': 0.32; 'server': 0.33;
'header:In-Reply-To:1': 0.33; 'same': 0.34; 'received:google.com':
0.34; 'from:addr:gmail.com': 0.35; 'trying': 0.36; 'image': 0.37;
'change': 0.37; 'received:209.85': 0.38; 'those': 0.38; "it's":
0.38; 'received:209': 0.38; 'use': 0.38; 'means': 0.40;
'necessary': 0.40; 'comes': 0.40; 'could': 0.40; 'button': 0.61;
'likely': 0.61; 'here': 0.62; 'choose': 0.62; 'data,': 0.63;
'browser': 0.64; 'your': 0.64; 'capable': 0.65; 'in.': 0.65;
'years': 0.67; 'accept': 0.68; 'screenshot': 0.69; 'tool': 0.72;
'sur': 0.77; 'url:fr': 0.77; 'left': 0.79; '....': 0.81; 'panel':
0.81; 'click': 0.82; '2021': 0.84; 'gladly': 0.84; 'property':
0.88; 'url:jsp': 0.91; 'url:site': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=date:from:to:subject:message-id:mail-followup-to:'user-agent
:references:mime-version:content-disposition
:content-transfer-encoding:in-reply-to;
bh=JHfbDY1zanemSOqRCRgvC6aooKpSJUGhIVwr8E+VRVY=;
b=jgzCNWSiYvJCiySs4isEqt4rS5gaF/SuioeLmvTxvq9jFy6Sl8mQBoJyksRBp/L0QB
h7W3X0xl3MjeR0Y8sz68WHX/yG1oEa0zhivJ3vrDREEpTILFh7KX0MfRww66En4HzTdI
KGovqEg69pjaFewX1QRxP0RHYhpFGO7CTmkDHD5HQ7SBEO1Hc4KDQLVHTOh+WaLaZY5V
+VIpAj1dGRU5LvFssDigykCFe71L7dGOi7aaX8eCqau0ScCUoZyd/V+GX01ZeCgBOkoq
gJvytCggVjxuKyQKjuIZAZ8VQZerYFyZ8XywBpgOoO/G/AKlHsfwy3JOSgqCGA7aa8rS
YfoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to
:'user-agent:references:mime-version:content-disposition
:content-transfer-encoding:in-reply-to;
bh=JHfbDY1zanemSOqRCRgvC6aooKpSJUGhIVwr8E+VRVY=;
b=VV3KeFuUMjJA74QXjdD/dd30mUo+cLX7ka+l5ksmyf5QwO5Bct7D2njyt/b1PtlLD9
jJMWjWwlDCCeizutM4SCkHUrljEFG6XwP0L8VueZD1Hy42g+u1axTk9zjYlh4JOYWWpq
ggeQzX22oc732SvJOTlL3jhVnuv+TcYUDWrHr4ckfYjQDs8gGvPrzACqfy6P19tiHSZL
xPqa3NS8uxGKsbv9CVO5KVeSgNVq7zSCsmPYqRmuQ7btyGgDYNxy5fqD6x/qSt6H4ixG
36P5O16A1rY++TfGXiKJ8zv2CRI8qEGCqmCeqnMtS9r4GO7Zd7eIj8Hx/n4CjYvLCGS6
VFIQ==
X-Gm-Message-State: AOAM532iQKFXNd1e6heQNxHbvQpqXzPv4ImkkHLoW2pdIznH+GlzRGhM
MScRh1aZoBV0rZ/Wzjbaug1fia7M82P5dQ==
X-Google-Smtp-Source: ABdhPJwMXX0hibreq8CGL8oDV703lQ7xYL0uUOsDA5hbK9rEdTSP6NuFIRuzz1zZ5r5naMNm5kq6dg==
X-Received: by 2002:a05:620a:2282:: with SMTP id
o2mr26489620qkh.479.1621820980472;
Sun, 23 May 2021 18:49:40 -0700 (PDT)
Mail-Followup-To: python-list@python.org
'User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.5.2 Lightning/5.4.5.2'
Content-Disposition: inline
In-Reply-To: <5a03d59e-dc6c-47b6-ac14-35e26c9c13d0n@googlegroups.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20210524014935.xinvyvf2unq3ltp5@gmail.com>
X-Mailman-Original-References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com>
<mailman.260.1621537992.3087.python-list@python.org>
<20210522195304.qlq4aot44bs2e5xa@gmail.com>
<644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<mailman.274.1621713194.3087.python-list@python.org>
<5a03d59e-dc6c-47b6-ac14-35e26c9c13d0n@googlegroups.com>
 by: Martin Di Paola - Mon, 24 May 2021 01:49 UTC

"unselectable text" not necessary means that it is an image. There is
a CSS property that you can change to make a text
selectable/unselectable.

And if it is an image, it very likely that it comes from the server as
such, so "intercepting" the packet coming from there will be for
nothing: you will have the same image.

About the "packet listener", you could setup a proxy between your
browser and the server and use the proxy to see the messages. "Burp" is
the classical tool for this.

But I have the feeling that the solution is easier.

Try the following: do it manually but take note of the steps you do.

Example:

1) Go to page https://www.parisclassenumerique.fr
2) Click in the upper-right menu button and choose "Tutoriels". Now the
URL is
https://www.parisclassenumerique.fr/lutece/jsp/site/Portal.jsp?page_id=9
3) Then click in "Comment démarrer sur PCN ?", on the left panel

.... and so on.

Basically you can then translate those steps to Selenium/selectq and
automate them. It's here where I could help you but I cannot do much
without more info because I don't know which page you are looking and in
which link you are trying to click and stuff like that.

On Sun, May 23, 2021 at 01:36:48AM -0700, max pothier wrote:
>Hi,
>Seems like that could be a method of doing things. Just one clarification: the website has unselectable text, looks like it's an image strangely generated, so if I can get the packet with it, it would be perfect. As I said (I think), logging in with Selenium was already possible, and I could get a screenshot of the page after logging in.
>If you got this working like a packet listener in browser capable of seeing packet data, I'd gladly accept the code.
>I've tried to do this for 3 years now (since I came into that school basically), looks like it's coming to an end!
>Thanks!
>--
>https://mail.python.org/mailman/listinfo/python-list

Re: Use Chrome's / Firefox's dev-tools in python

<5dbfebb3-6139-4df6-a4b2-4dceb1b10710n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13268&group=comp.lang.python#13268

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a0c:ef45:: with SMTP id t5mr29654790qvs.26.1621848200752;
Mon, 24 May 2021 02:23:20 -0700 (PDT)
X-Received: by 2002:a05:620a:a4c:: with SMTP id j12mr24545941qka.33.1621848200485;
Mon, 24 May 2021 02:23:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Mon, 24 May 2021 02:23:20 -0700 (PDT)
In-Reply-To: <mailman.286.1621820983.3087.python-list@python.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9;
posting-account=w8iC3QkAAACV84KzwIebO5iup_bkMTK0
NNTP-Posting-Host: 2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com> <mailman.260.1621537992.3087.python-list@python.org>
<20210522195304.qlq4aot44bs2e5xa@gmail.com> <644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<mailman.274.1621713194.3087.python-list@python.org> <20210524014935.xinvyvf2unq3ltp5@gmail.com>
<5a03d59e-dc6c-47b6-ac14-35e26c9c13d0n@googlegroups.com> <mailman.286.1621820983.3087.python-list@python.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5dbfebb3-6139-4df6-a4b2-4dceb1b10710n@googlegroups.com>
Subject: Re: Use Chrome's / Firefox's dev-tools in python
From: contact....@gmail.com (max pothier)
Injection-Date: Mon, 24 May 2021 09:23:20 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2107
 by: max pothier - Mon, 24 May 2021 09:23 UTC

Ok,
So here's a screenshot:
https://ibb.co/2dtGr3c
1 is the website's scrollbar and 2 is Firefox's scrollbar.
Seems like it uses a strange embed thing.
The packet follows:
https://pastebin.com/2qEkhZMN
@Martin Di Paola: I sent you the pastebin password per email so that you're the only one who can access it, I just don't want anyone who passes by to be able to see my quotes...
What is that CSS tag? I could try to disable it in the inspector.

Re: Use Chrome's / Firefox's dev-tools in python

<14abf9c9-2257-4db2-9240-23ea28ce1fa1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13269&group=comp.lang.python#13269

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a0c:e1d1:: with SMTP id v17mr29272428qvl.52.1621848783960;
Mon, 24 May 2021 02:33:03 -0700 (PDT)
X-Received: by 2002:a05:620a:15a2:: with SMTP id f2mr29545183qkk.310.1621848783818;
Mon, 24 May 2021 02:33:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Mon, 24 May 2021 02:33:03 -0700 (PDT)
In-Reply-To: <5dbfebb3-6139-4df6-a4b2-4dceb1b10710n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9;
posting-account=w8iC3QkAAACV84KzwIebO5iup_bkMTK0
NNTP-Posting-Host: 2a01:cb04:a69:ec00:b22f:1e8c:884b:edc9
References: <CAPTjJmpbeGDTM-4f=3EXvLhTzF5aX=tJxraMxc_cTZZ2OiKz6g@mail.gmail.com>
<491394a0-4f90-4f3b-8479-199bdc2abc92n@googlegroups.com> <mailman.260.1621537992.3087.python-list@python.org>
<20210522195304.qlq4aot44bs2e5xa@gmail.com> <644ac9d6-f860-46cf-8573-87b7d4f9c407n@googlegroups.com>
<mailman.274.1621713194.3087.python-list@python.org> <20210524014935.xinvyvf2unq3ltp5@gmail.com>
<5a03d59e-dc6c-47b6-ac14-35e26c9c13d0n@googlegroups.com> <mailman.286.1621820983.3087.python-list@python.org>
<5dbfebb3-6139-4df6-a4b2-4dceb1b10710n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <14abf9c9-2257-4db2-9240-23ea28ce1fa1n@googlegroups.com>
Subject: Re: Use Chrome's / Firefox's dev-tools in python
From: contact....@gmail.com (max pothier)
Injection-Date: Mon, 24 May 2021 09:33:03 +0000
Content-Type: text/plain; charset="UTF-8"
 by: max pothier - Mon, 24 May 2021 09:33 UTC

Found this:
https://pastebin.com/fvLkSJRp
with use-select tags.
I'll try to use selenium and select the page.
But using the JSON packet that's sent will still be more practical.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor