Skip to content

suruga-ya.jp parser. Updated for compatibility with April 2021 site updates.

License

Notifications You must be signed in to change notification settings

MeramiFan/surugaya_parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

surugaya_parser

Updated version following updates to suruga-ya.jp around April 2021. Repaired and revised functionality.

Functions updated: Search, SearchDetail. Function added: SearchDetailShort. Updated parsing for compatibility with the new page structure.

General: added ability to search by "brand" or circle name. Improved handling of title strings and URL encoding.

Not updated: KaitoriSearch, KaitoriSearchDetail

About requirements: urllib3==1.24.1 is specified. A more recent version (1.26.7 was tested) changed something which results in an endless redirect loop until exception is thrown.

Get list of search results (example in example.py)

# Search
pg = Search(s, '11', 'Foreground Eclipse')
pprint(pg.items)

Get item details from search (example in example.py)

# SearchDetail
pgd = SearchDetail(s, '186125780')
pprint(pgd.item)

Get specific attributes from circle or keyword search. The main update: SearchDetailShort.

Returns: title, circle, release date, catalog.

Format: [release_date] title - circle {catalog}

About

suruga-ya.jp parser. Updated for compatibility with April 2021 site updates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%