Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.
/ webspider Public archive

Web spider for Reddit and Experience Project

Notifications You must be signed in to change notification settings

shaoxiongji/webspider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Spider

Some web spiders including: Reddit and experience project.

There are two versions of Reddit spiders using Scrapy and Reddit API.

To run these spiders, some folders need to be created and the path name should be modified.

Reddit API

There are three scripts in the folder of redditapi.

(1) crawl the posts (including titles and text bodies) of subreddit.

(2) crawl the posts and comments.

(3) get the sequences of comments.

Reddit Scrapy

Scrapy is used to crawl the posts in this script and comments in this script. XPATH and CSS are used to match specific information. Run the code:

python scrapy_reddit.py

Experience Project

Scrapy is used to crawl the posts from Experience Project. XPATH and CSS are used to match specific information, implemented in this script. Run the code:

python scrapy_ep.py

Requirements

python 3.6

scrapy 1.3.3

requests 2.18.4

About

Web spider for Reddit and Experience Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages