Case in point from my own recent work: I've been analysing characteristics of Google+ Communities, mostly looking for plausibly active good-faith instances. There are 8.1 million communities in total, and thanks to some friendly assistance, I'd identified slihtly more than 100,000 with both 100 or more members, and visible activity within the preceeding 31 days, as of early 2019. The task of Web scraping those 100k c…
Are you planning on open-sourcing the downloader part? I'm very interested.
I'm planning on posting the data, probably to https://social.antefriguserat.de/ and will include procssing scripts.
This is the fetch-script, which saves both the HTML and HEAD responses:
#!/bin/bash
sample_file=$1
comm_path='community-pages'
base_url='https://plus.google.com/communities'
i=0
time sed -e 's,^.*/,,' $sample_file |
while read commid;
do
i=$((i+1))
echo -e "\n>>> $i $commid &2;
url="${base_url}/${commid}"
commfile="${comm_path}/${commid}.html"
commhead="${comm_path}/${commid}.head"
echo "curl -s -o '${commfile}' -D '${commhead}' '${url}'"
done
The sample file is simply a list of G+ community IDs or URLs, e.g.: 100000056330101053659
100000310247038604843
100000355641542704509
100000408644688836681
100000537266485621548
100000813948204546252
100001055751908082772
100001158162744298957
100001173291703462139
100001193552641351693