Hi guys this is my code:
#! /user/bin/env python
import os
import lxml
from bs4 import BeautifulSoup
string = os.system("curl -i https://it.wikipedia.org/wiki/Coldplay")
soup = BeautifulSoup(string, features="xml")
tag = soup.find_all("tbody")
and when i will execute it this is my error
enter code hereTraceback (most recent call last):
File "script_wiki.py", line 6, in <module>
soup = BeautifulSoup(string, features="xml")
File "build/bdist.macosx-10.12-intel/egg/bs4/__init__.py", line 192, in __init__
TypeError: object of type 'int' has no len()
i'm beginner and i haven't a idea what is the problem sorry