Skip to content

Commit

Permalink
Formatting and check.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil25803 committed May 14, 2024
1 parent f28c34b commit f7a10e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/scrape_up/imdb/imdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def scrape_genre_movies(self, genre):
genre_data = scraper.scrape_genre_movies(genre)
json_data = json.dumps(genre_data, indent=4)
print(json_data)
```
Return\n
```python
Expand All @@ -103,8 +102,6 @@ def scrape_genre_movies(self, genre):
try:
url = "https://www.imdb.com/search/title/?genres={}&sort=user_rating,desc&title_type=feature&num_votes=25000,&pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=5aab685f-35eb-40f3-95f7-c53f09d542c3&pf_rd_r=N97GEQS6R7J9EV7V770D&pf_rd_s=right-6&pf_rd_t=15506&pf_rd_i=top&ref_=chttp_gnr_16"
formatted_url = url.format(genre)
print(formatted_url)

resp = requests.get(formatted_url, headers=self.headers)
content = BeautifulSoup(resp.content, "lxml")
genres = [
Expand Down
4 changes: 2 additions & 2 deletions src/test/imdb_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from scrape_up import imdb
from scrape_up.imdb import IMDB

class IMDBTest(unittest.TestCase):
"""
Expand All @@ -12,7 +12,7 @@ class IMDBTest(unittest.TestCase):
"""

def setUp(self):
self.scraper = imdb()
self.scraper = IMDB()

def test_top_rated(self):
response = self.scraper.top_rated()
Expand Down

0 comments on commit f7a10e8

Please sign in to comment.