A few questions regarding Pythons 'import' feature -


i downloaded beautiful soup , i've decided i'll make small library (is call them in python?) return results of movie given , imdb movie search.

my question is, how import thing work?

for example, downloaded beautifulsoup , is, .py file. file have in same folder python application (my project use library)?

for ubuntu, can search packages command

apt-cache search beautifulsoup 

this should yield

python-beautifulsoup - error-tolerant html parser python 

so easiest way install beautifulsoup ubuntu run

sudo apt-get install python-beautifulsoup 

once this, can put

import beautifulsoup  

in of scripts , python installation find module.


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -