Skip to content

Instantly share code, notes, and snippets.

View alexghi's full-sized avatar
🐧

Alex Ghiurau alexghi

🐧
View GitHub Profile
@alexghi
alexghi / App Reviews Scraper.md
Last active June 23, 2022 18:41 — forked from iosifnicolae2/Readme.md
Scraping Google Play Reviews

Installation

python3 -m pip install google-play-scraper

Run

python3 main.py

Open the output CSV file by dropping it on Google Drive.

@alexghi
alexghi / moon_phase.js
Created March 12, 2022 18:46 — forked from Dither/moon_phase.js
JS function to calculate moon phase
function moon_phase(date) { // ported from http://www.voidware.com/moon_phase.htm
var year = date.getYear(),
month = date.getMonth(),
day = date.getDay();
if (month < 3) {
year--;
month += 12;
}