I just downloaded Beautiful Soup and I’ve decided I’ll make a small library (is that what they call them in Python?) that will return results of a movie given and IMDB movie search.
My question is, how exactly does this import thing work?
For example, I downloaded BeautifulSoup and all it is, is a .py file. Does that file have to be in the same folder as the my python application (my project that will use the library)?
For Ubuntu, you can search for packages with the command
This should yield
So the easiest way to install BeautifulSoup for ubuntu would be to run
Once you do this, you can put
in any of your scripts and your python installation will find the module.