MatthewChatham / glassdoor-review-scraper

Scrape reviews from Glassdoor
BSD 2-Clause "Simplified" License
179 stars 252 forks source link

Can I add new variable? #31

Open wenxin-lab opened 4 years ago

wenxin-lab commented 4 years ago

Hello, I want to add some new variables in the scraped website, I know how to add related code in the main.py, but I dont know how to change the code in the schema. This is the original schema: B

ûR›\<„@s(dddddddddd d d d d ddgZdS)⁄dateZemployee_title⁄locationZemployee_status⁄ review_titleZyears_at_company⁄helpful⁄pros⁄consZadvice_to_mgmtZrating_overallZrating_balanceZrating_cultureZ rating_careerZ rating_cZ rating_mgmtN)⁄SCHEMA©rr˙</Users/mow/Desktop/glassdoor-review-scraper-master/schema.py⁄s

This is my schema:  B

ûR›\<„@s(dddddddddd d d d d ddgZdS)⁄dateZemployee_title⁄locationZemployee_status⁄ review_titleZyears_at_company⁄helpful⁄recommand⁄outlookZceoapprovaN)⁄SCHEMA©rr˙</Users/mow/Desktop/glassdoor-review-scraper-master/schema.py⁄s

But I got error:

Traceback (most recent call last): File "maintest.py", line 31, in from schema import SCHEMA File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 724, in exec_module File "", line 857, in get_code File "", line 525, in _compile_bytecode EOFError: marshal data too short

Anyone can help?