Skip to content

sarka-stepankova/seo-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEO Analyzer

School project on Searching the Web (2023/24). A specification for the project can be found in specification.md.

How to install

Installation tested on Ubuntu 22.04. Download project from GitHub. Go to the project folder. From now on we suppose that you're in the project folder.

Install and run Frontend

Check your version of npm ~$ npm -version. It should print something like 10.5.0. Or download npm if you don't have one. Then:

cd ./frontend/seo-analyzer/
npm ci      # install
npm start   # run

Install and run Backend

You can find requirements.txt file in the project folder. Use command pip install -r requirements.txt, to install python requirements (Flask, beutifulsoup, ...).

There is just one tricky part. You have to set up Selenium with Firefox and Geckodriver. We assume you have firefox installed (not via snap, see Tips and tricks). Download and install geckodriver from this GitHub page: https://github.com/mozilla/geckodriver/releases.

If you have problems setting up selenium with firefox and geckodriver, this page might help: Tips and tricks. Also, from my personal experience, a problem with firefox and geckodriver -> turned out to be problem with firefox options -> reinstalled firefox.

Run backend:

# cd ../..      -> go to main folder
cd ./backend
python3 app.py

Structure

The frontend and the backend are for the developing purposes separated. Frontend is in frontend/seo-analyzer/ folder. Then in frontend/seo-analyzer/src/ there is App.js and components/ folder. Main Container is created in components/AnalysisForm.js.

The backend is just three simple .py files in backend/ folder. With app.py as the main file and web_analysis.py + screenshot.py with classes for seo analyzing and taking snaphots.

How to use the app

Enter a url, for example https://example.com/ or example.com and click on Analyze button. It will take a while, because selenium is taking snapshot. After loading, if everything was successful, you can see the Overall report, Basic SEO and Advanded SEO. The following picture shows the beginning of the analysis.

Example Analysis

And from advanced for example a mobile snapshot.

Mobile snapshot from example.com

About

School project on Searching the Web - SEO Analyzer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published