Coder Social home page Coder Social logo

gonzalomelov / seo-tester Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 73 KB

SEO Tester is a script that checks the Open Graph and Twitter Card meta tags for a list of URLs provided in a CSV file. It uses Puppeteer with the StealthPlugin to scrape the meta tags and compare them with the expected values from the CSV.

License: MIT License

JavaScript 100.00%

seo-tester's Introduction

SEO Tester

SEO Tester is a script that checks the Open Graph and Twitter Card meta tags for a list of URLs provided in a CSV file. It uses Puppeteer with the StealthPlugin to scrape the meta tags and compare them with the expected values from the CSV.

Installation

  1. Make sure you have Node.js installed on your machine. If not, download and install it from the official website.

  2. Clone or download this repository to your local machine.

  3. Open a terminal or command prompt and navigate to the directory where the project is located.

  4. Run the following command to install the required packages:

    npm install

Usage

Create a CSV file named input.csv in the project directory. The CSV should have the following headers: url, og:image, og:description, og:url, og:title, twitter:image, twitter:description, and twitter:title. Add the URLs and their expected meta tag values as rows in the CSV.

Example:

csv

url,og:image,og:description,og:url,og:title,twitter:image,twitter:description,twitter:title
https://www.example.com/,https://www.example.com/image.jpg,Example description,https://www.example.com/,Example Title,https://www.example.com/twitter-image.jpg,Example Twitter description,Example Twitter Title

In the terminal or command prompt, navigate to the project directory and run the script using the following command:

node seo-tester.js

The script will process the URLs in the CSV file and output the results in the terminal, indicating whether the meta tags are valid or not.

License This project is licensed under the MIT License. See the LICENSE file for details.

seo-tester's People

Contributors

gonzalomelov avatar

Stargazers

vittorioPiotti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.