SharlSherif / Generate-HoustonLibrary-Codes

A simple script to automate the process of getting a card number from Houstonlibrary.org in order to get free access to Lynda.com
35 stars 8 forks source link

Turn this script into a web page for end-users #2

Open SharlSherif opened 4 years ago

SharlSherif commented 4 years ago

If anyone is interested to work on this with me. please let me know.

JulyanoF commented 4 years ago

@SharlSherif I can help if you want to

SharlSherif commented 4 years ago

@JulyanoF Sure, I think the steps are turning it into an express API endpoint and make a simple UI using bootstrap or something then figuring out the free hosting suitable. Let me know which part you want to contribute to.

JulyanoF commented 4 years ago

@SharlSherif I thought using bootstrap too. I'm a fullstack developer (PHP). I can contribute with anything ;)

JulyanoF commented 4 years ago

I like to use CakePHP. There are many libraries to simplify many tasks

JulyanoF commented 4 years ago

I just see you are using web scraping in NodeJS to get some fake data.

SharlSherif commented 4 years ago

@JulyanoF I'm not really interested in rewriting the script in another language. If you want, I could provide API endpoints and you use it to make the webpage in bootstrap.

JulyanoF commented 4 years ago

@SharlSherif okay, I can make only font-end webpage

maximousblk commented 4 years ago

Sorry. Didn't mean to mention this issue. It was a mistake.

I was trying to turn this into into a serverless function and then got to know about #6.

If there is a way to re accomplish this, I would love to help.

SharlSherif commented 4 years ago

@maximousblk Thanks for your interest, I recently found out about another library that would give free access to Lynda, Udemy courses but I can't remember its name! I will try to find it again.

SharlSherif commented 4 years ago

@maximousblk I think the library is starklibrary.org, someone else mentioned it here

https://github.com/SharlSherif/Generate-HoustonLibrary-Codes/pull/4

maximousblk commented 4 years ago

@SharlSherif I don't really know how these libraries work, If the main script works (or you could explain it a bit) I can convert it into an "API" which can work without anything but a browser.

From what I understand, this just goes to a library's website and applies for a library card which you can use for free access to Lynda ( now LinkedIn education #7 ) and similar services that allow this.

starklibrary.org/home/contact-us/register-for-a-library-card seems to be inaccessible. It can be a ip block for people outsite the area.

SharlSherif commented 4 years ago

@maximousblk Yea they seem to block people outside the US. It was a coincidence that I was using a VPN when I opened that link. we can easily bypass that anyway, all the script does is that it opens a website that has fake generated info for a person's name, address, gender, etc and just scrapes it from there to fill the registration form.

maximousblk commented 4 years ago

Blocking is not a problem if you use it on your local machine. When deploying it as a serverless function, it is run on many servers across the globe. So until you are in US, it won't work. Although, it may work it you use a vpn to access the function. We'll see about that.

First we need this to be working locally.