Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeonss committed Dec 11, 2022
1 parent 00d25f7 commit 5f6df5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions MFC.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,4 @@ def __init__(self, name, image, figure_id, url, category, origin, character, com
self.dimensions = dimensions

def __repr__(self):
return self.url

print(MFC.search("hatsune miku"))
return self.url
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pip install -r requirements.txt

Get figure information with figure id (Figure)
``` bash
import mfc
figure = mfc.searchFigure("1711391")
from MFC import MFC
figure = MFC.searchFigure("1711391")

# Get information of the figure
name = figure.name
Expand All @@ -48,8 +48,8 @@ dimensions = figure.dimensions

Get a list of figures with character name (List of FigureResult)
``` bash
import mfc
result = mfc.search("hatsune miku")
from MFC import MFC
result = MFC.search("hatsune miku")

# Get information of the first figure in the results
name = result[0].name
Expand Down
Binary file added __pycache__/mfc.cpython-310.pyc
Binary file not shown.

0 comments on commit 5f6df5a

Please sign in to comment.