Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New header in "Python coding"
#3
I do not think that code button should be mention as to be used preserve Python's indentation.
Now that modification has been done(no PHP),i want all to use Python code button(look a lot better).
So here a picture that you may use.
[Image: vkYoys.jpg]


Python code block.
import requests
from bs4 import BeautifulSoup

url = 'url'
url_get = requests.get(url)
soup = BeautifulSoup(url_get.content, 'lxml')
tag = soup.find('title')
print(tag.text)
print(soup)
Original Code block.
import requests
from bs4 import BeautifulSoup

url = 'url'
url_get = requests.get(url)
soup = BeautifulSoup(url_get.content, 'lxml')
tag = soup.find('title')
print(tag.text)
print(soup)
Reply


Messages In This Thread
New header in "Python coding" - by Ofnuts - Sep-22-2016, 08:25 AM
RE: New header in "Python coding" - by metulburr - Sep-22-2016, 01:15 PM
RE: New header in "Python coding" - by snippsat - Sep-22-2016, 02:07 PM
RE: New header in "Python coding" - by metulburr - Sep-22-2016, 02:10 PM
RE: New header in "Python coding" - by snippsat - Sep-22-2016, 02:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  malformed header from script 'main.py': Bad header: * Serving Flask app "main" anuragsapanbharat 2 4,656 Jun-12-2019, 07:26 AM
Last Post: anuragsapanbharat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020