Skip to content

Commit

Permalink
Màj stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Binnette committed Dec 3, 2023
1 parent d34efc6 commit e340834
Show file tree
Hide file tree
Showing 31 changed files with 93,643 additions and 7,401 deletions.
11 changes: 6 additions & 5 deletions Scrapping/Scrapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@

```js
var events = [];
document.querySelectorAll(".eventList-list .eventCard").forEach(eventElement => {
document.querySelectorAll("ul.w-full > li").forEach(eventElement => {
var timestamp = Number(eventElement.querySelector("time").getAttribute("datetime"));
var date = new Date(timestamp);
var dateString = `'${date.toISOString().slice(0, 10)}`;
var suffix = "", km = "", dplus = "", ele = "", comment = "", attendees = "";
var attendeesSection = eventElement.querySelector(".avatarRow--attendingCount");
var attendeesSection = eventElement.querySelector(".items-center span.sm:inline");
if (attendeesSection) {
attendees = Number(attendeesSection.innerText.split(" ")[0]);
}
var titleElement = eventElement.querySelector(".eventCardHead--title");
var titleElement = eventElement.querySelector(".ds-font-title-3");
var title = titleElement.innerText.replaceAll('"', "'");
var type = '';
if (title.includes('🎿')){
type = 'Ski';
}
if (title.includes('🥾') || title.toLowerCase().includes('hike')) {
} else if (title.includes('🧗')){
type = 'Via';
} else if (title.includes('🥾') || title.toLowerCase().includes('hike')) {
type = 'Hike';
}
var url = eventElement.querySelector("a").href;
Expand Down
13 changes: 13 additions & 0 deletions Stats/9igf-gac.csv
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,16 @@ Date,Suffix,KM,Dplus,Top,People,Name,Type,Comment,EventLink,TrailShortLink,Trail
2023-08-14,,14,1329,2644,12,"🥾⛺🔴 Hike Camp: after-work car ride + 🌠 night in tent + lake hike #Valsenestre",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/295381068/,https://s.42l.fr/kbLPOI0m,https://s.42l.fr/9IBV9CmM7,https://s.42l.fr/J0wLL_Xs,,2023-08-14-🥾⛺🔴-Hike-Camp-after-work-car-ride-🌠-night-in-tent-lake-hike-#Valsenestre.html
2023-08-19,d1,7.2,580,2480,14,"🥾⛺🔴 Hike : 2 days/1 night Mont Thabor 3178m 🌄 & the lakes 🏊️",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/295503471/,https://s.42l.fr/fcXFmZQd,,,,
2023-08-20,d2,7.2,580,3178,14,"🥾⛺🔴 Hike : 2 days/1 night Mont Thabor 3178m 🌄 & the lakes 🏊️",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/295503471/,https://s.42l.fr/63cv0dtr,,,,
2023-09-29,,7.6,442,635,74,"🥾🌚Harvest Moon ('lune de moisson') - Night Hike to Mt. Jala (Bastille)🌚🥾",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/289327751/,https://s.42l.fr/iF8IWgUy,,,,
2023-09-30,d1,14.9,1072,2368,3,"🥾⛺🔴 Hike : daily hikes & night camp 'Le Plateau de Bure' 📡📡📡👽",Hike,Day1,https://www.meetup.com/grenoble-adventure-club-english-french/events/296425340/,https://s.42l.fr/UM2biyHO,,,,
2023-10-01,d2,14.9,1537,2709,3,"🥾⛺🔴 Hike : daily hikes & night camp 'Le Plateau de Bure' 📡📡📡👽",Hike,Day2,https://www.meetup.com/grenoble-adventure-club-english-french/events/296425340/,https://s.42l.fr/dShnNiNp,,,,
2023-10-07,,9.8,480,570,13,"🥾🔵 Hike: (f)Romage 🧀",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/296560263/,https://s.42l.fr/mJ1KB5-U,,,,
2023-10-15,,10.8,691,865,7,"🥾🔵 Hike: La Ferme Durand 🚜",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/296703101/,https://s.42l.fr/j_PX-bWb,,,,
2023-10-21,,6.6,739,1335,20,"🟢 🥾 Easy Hike - Fort Saint-Eynard (2023) 🟢 🥾",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/289698037/,https://s.42l.fr/X1PV7Bd5,,,,
2023-10-22,,14.9,313,437,8,"🥾🔵 Hike: Castle of Bon Repos 🏰 #Chestnut 🌰 #Tram 🚊",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/296875526/,https://s.42l.fr/KHE4Mq7C,,,,
2023-10-29,,19,814,1020,12,"🥾🔵 Hike: Vercors via the Old Tramway Railroad 🚊🚊🚊 #Tram 🚊",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/297008770/,https://s.42l.fr/c8khw3VX,,,,
2023-11-01,,11.7,694,2253,6,"🥾🔴 Hike: ⛄❄ snow walk (and bath?😱🥶) in Chamrousse!? 🧊",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/297066459/,https://s.42l.fr/CuN6Eyfo,,,,
2023-11-05,,11.5,642,1966,11,"🥾🔵 Hike: ⛄ snow walk 'La Montagne de Lans' ⛷️",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/297155316/,https://s.42l.fr/W_bJYIPy,,,,
2023-11-11,,13.5,890,2124,13,"🥾🔴 Hike: ⛄ snow walk 'Les 7 Laux' ⛷️",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/297276396/,https://s.42l.fr/U_BL8Njq,,,,
2023-11-18,,14,940,1270,18,"🥾🔵 Hike: From Vif to Le Pieu ⛰ 1270m 🍃🍁🍂",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/297401005/,https://s.42l.fr/9t1x93J3,,,,
2023-11-26,,13.1,602,1193,13,"🥾🟢 Hike: Easy loop around Theys 🍂🏡🍁",Hike,,https://www.meetup.com/grenoble-adventure-club-english-french/events/297556849/,https://s.42l.fr/kKgo0xaH,,,,
2 changes: 1 addition & 1 deletion Stats/generate_umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def generetateAllUmap():
print("Stats :")
for s in stats:
print(f' - {s} = {stats[s]}')
print(f' # Total = {total}')
print(f' # Total (without canceled) = {total}')

layers = getLayersFromFeatures(features);
for l in layers:
Expand Down
Loading

0 comments on commit e340834

Please sign in to comment.