All Projects → filipemeneses → fatec-api

filipemeneses / fatec-api

Licence: other
API for SIGA from Centro Paula Souza made for students to create things based in their profile data

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to fatec-api

laravel-block-bots
Block crawlers and high traffic users on your site by IP using Redis
Stars: ✭ 25 (-46.81%)
Mutual labels:  scrapper
meta-fetcher
Simple metadata scrapper for node.js
Stars: ✭ 137 (+191.49%)
Mutual labels:  scrapper
waifu-generator
Let's pick up your favorite waifu just from the API
Stars: ✭ 31 (-34.04%)
Mutual labels:  scrapper
Spider
💫 Spider is a PHP library with easily module integration for crawling website that allows you to scrape informations.
Stars: ✭ 14 (-70.21%)
Mutual labels:  scrapper
stweet
Advanced python library to scrap Twitter (tweets, users) from unofficial API
Stars: ✭ 287 (+510.64%)
Mutual labels:  scrapper
shopee-inventory-bot
"I Make dropshiper's job easier" ~ Python Shopee Inventory Bot
Stars: ✭ 21 (-55.32%)
Mutual labels:  scrapper
awesome-libraries
😎 Libraries that are being shown in Sourcerer profiles.
Stars: ✭ 131 (+178.72%)
Mutual labels:  profile-data
fiction-dl
A content downloader, capable of retrieving works of (fan)fiction from the web and saving them in a few common file formats.
Stars: ✭ 22 (-53.19%)
Mutual labels:  scrapper
jseval
Evaluate JavaScript on a URL through headless Chrome browser.
Stars: ✭ 19 (-59.57%)
Mutual labels:  scrapper
APSoft-Web-Scanner-v2
Powerful dork searcher and vulnerability scanner for windows platform
Stars: ✭ 96 (+104.26%)
Mutual labels:  scrapper
MyTelegramOrgRoBot
telegram.dog/usetgxbot
Stars: ✭ 94 (+100%)
Mutual labels:  scrapper
4chanMarkovText
Text Generation using Markov Chains fed by 4chan APIs
Stars: ✭ 28 (-40.43%)
Mutual labels:  scrapper
storexplore
Transform online stores into APIs !
Stars: ✭ 20 (-57.45%)
Mutual labels:  scrapper
xvideos
xvideos API library
Stars: ✭ 165 (+251.06%)
Mutual labels:  scrapper
SigTools
📆 Sigarra Tools | An extension that makes the information system of the University of Porto slightly better.
Stars: ✭ 35 (-25.53%)
Mutual labels:  scrapper
Instagram-to-discord
Monitor instagram user account and automatically post new images to discord channel via a webhook. Working 2022!
Stars: ✭ 113 (+140.43%)
Mutual labels:  scrapper
gosquito
gosquito ("go" + "mosquito") is a pluggable tool for data gathering, data processing and data transmitting to various destinations.
Stars: ✭ 25 (-46.81%)
Mutual labels:  scrapper

fatec-api

Travis branch npm

API for SIGA from Centro Paula Souza made for students to create scripts based in their profile data.

Usage

Install the package:

npm install fatec-api --save

Check the documentation at: https://filipemeneses.gitbooks.io/fatec-api/

Getting Started

A quick example will show how to use it, scrapping the user name. And will cover the usage with Node.js using ES6 syntax.

const fatecApi = require('fatec-api')
const myAccount = new fatecApi.Account('LOGIN', 'PASSWORD')

myAccount.login().then(() => {
  return myAccount.getName().then(name => {
    console.log(name)
    // <- 'YOUR FULL NAME WITH CAPSLOCK'
  })
})

How it works

This library scrap data using HTTP requests with request and parses the HTML with cheerio library.

The auth/Account class does the heavy lifting, making the requests using core/Network. The scrapped data is later available at the attribute student of the auth/Account instance.

Here's the flow of account.getName():

Check out the documentation for more info.

Documentation

Available at: https://filipemeneses.gitbooks.io/fatec-api/

Discussion

Available at: https://discord.gg/RUv5Kxw

Development

  1. Clone:
git clone https://github.com/filipemeneses/fatec-api.git
cd fatec-api
  1. Install:
npm i
  1. Test:

Create the .env file in the root with the required values to test.

LOGIN=TEST
PASSWORD=TEST
NAME=TEST

There is two important test files to keep track with:

  • tests/FatecApi.test.ts to test the library features
npm run test:api
  • tests/Siga.test.ts to test the integrity of SIGA (check if scrapped tags remains the same)
npm run test:siga

To test all:

npm run test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].