Skip to content

01mu/gamefaqs-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

gamefaqs-scraper

Scrape board and thread information from GameFAQs. Repeated use may lead to a temporary IP block from GameFAQs.

Usage

Get threads from a board

from gamefaqs_scraper import GFSBoard

board = GFSBoard()
board.get_site('234547-super-smash-bros-ultimate', 0)
threads = board.find()

print("Pages: " + str(board.max_page) + "\n")

for i in range(len(threads)):
    print(threads[i].title + "\n" + threads[i].author + "\n" + threads[i].last
        + "\n" + threads[i].replies + "\n" + threads[i].link + "\n")
Pages: <max pagination>

<Title>
<Author>
<Last post date>
<Post count>
<Link to thread>

<Title>
<Author>
...

Get posts from a thread

from gamefaqs_scraper import GFSThread

thread = GFSThread()
thread.get_site('234547-super-smash-bros-ultimate/77126753', 0)

posts = thread.find()

print("Pages: " + str(thread.max_page) + "\n")

for i in range(len(posts)):
    print(posts[i].author + "\n" + posts[i].date + "\n" + posts[i].body + "\n")
Pages: <max pagination>

<Author>
<Post date>
<Post body>

<Author>
...

About

Scrape board and thread information from GameFAQs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages