Skip to content

Commit

Permalink
change directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaxPanther committed Aug 1, 2022
1 parent 63c60f9 commit 8735e57
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
5 changes: 2 additions & 3 deletions imdb-api/__init__.py → imdb_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IMDb:

url="https://www.imdb.com"

def getIdFromSearch(self,search):
def getIdFromSearch(self, search):
if search == "":
return ""
if re.match(r"^tt\d{7,}$", search):
Expand Down Expand Up @@ -270,7 +270,7 @@ def getAllFeatures(self, imdb_id, seconds = False, InList = False, name_id = Fal
features["rating"] = IMDb.getRating(self, imdb_id, details)
features["rating_count"] = IMDb.getRatingCount(self, imdb_id, details)
features["reviews_count"] = IMDb.getReviewsCount(self, imdb_id, source)
features["keywords"] = IMDb.getKeywords(self, imdb_id, details, InList)
features["keywords"] = IMDb.getKeywords(self, imdb_id, details, InList = True)
features["filming_location"] = IMDb.getFilmingLocation(self, imdb_id, source, InList)
features["aka"] = IMDb.getAka(self, imdb_id, source, InList)
features["poster_url"] = IMDb.getPosterURL(self, imdb_id, details)
Expand Down Expand Up @@ -454,4 +454,3 @@ def getPage(url):
except:
print("A network error occured. Please, check your internet connection.")
return ""

36 changes: 21 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
from __future__ import absolute_import
from setuptools import setup, find_packages
import os

with open('requirements.txt') as f:
install_requires = f.read().splitlines()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))


setup(
name='imdb-api',
version='1.0',
license='MIT',
author="Giorgos Myrianthous",
author_email='[email protected]',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/gmyrianthous/example-publish-pypi',
keywords='example project',
install_requires=[
'scikit-learn',
],
name='imdb-page-api',
version='1.0.3',
description='A useful API to scrap movie/series/video details available on IMDb.',
license='GNU General Public License v3.0',
author="BlaxPanther",
packages=["imdb_api"],
url='https://github.com/BlaxPanther/imdb-api.git',
keywords='python, imdb, movie-api, imdb-webscrapping, imdb-api, imdb-python, imdb-scraper',
install_requires=["requests==2.26.0","beautifulsoup4==4.10.0"],
zip_safe=False,
classifiers=[
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
]

)

)

0 comments on commit 8735e57

Please sign in to comment.