Aller au contenu
View in the app

A better way to browse. Learn more.

Omerta

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

récupérer le code d'une page web (html)

Featured Replies

Posté(e)

coucou! me revoila

aujourd'hui ptit partage d'un code python qui va récupérer le code html d'une page

le programme est très simple et tiens en quelques lignes, codé en python, avec request module (utilise curl lol)

import requests

response = requests.get('MA_PAGE_INTERNET') #exemple: https://monsite.com/

with open('CopieDeLaPage.html', 'wb') as f:
    f.write(response.content)

 

❤️

 

 

Capture.PNG

  • fntnstk changed the title to récupérer le code d'une page web (html)
Posté(e)
Il y a 5 heures, fntnstk a dit :

coucou! me revoila

aujourd'hui ptit partage d'un code python qui va récupérer le code html d'une page

le programme est très simple et tiens en quelques lignes, codé en python, avec request module (utilise curl lol)

import requests

response = requests.get('MA_PAGE_INTERNET') #exemple: https://monsite.com/

with open('CopieDeLaPage.html', 'wb') as f:
    f.write(response.content)

 

❤️

Waouh ! Code hyper complet !!

Je déconne, sinon Ctrl + S sur la page c'est bien aussi 🙂

Merci bg

Plus on échoue, plus on se rapproche du succès 🔥

Créer un compte ou se connecter pour commenter

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.