canbolukbas / findlatinnights

A website that shows the latin dance night events around your city.
2 stars 0 forks source link

Automate Scraping Events #13

Open canbolukbas opened 11 months ago

canbolukbas commented 11 months ago
Screen Shot 2023-07-15 at 15 34 24
canbolukbas commented 11 months ago

Then I'll manually add these events by looking at the stories.

canbolukbas commented 11 months ago

Below script prints the external urls of the events which are instagram profiles. You should run it within shell_plus.

import re
regex = re.compile(r'^https://www\.instagram\.com/[^/]+/$')
url_list = list(Event.objects.values_list('external_url', flat=True).distinct())
profile_urls = [url for url in url_list if regex.match(url)]
for p in profile_urls:
    print(p)
canbolukbas commented 11 months ago

I want to download all stories of each instagram profile url in an array, to my desktop.

For example, below is an array of instagram profiles: ['https://www.instagram.com/kizztanbul/', 'https://www.instagram.com/hepdans/', 'https://www.instagram.com/istanbuldancelife/']

I want to give this array to a python script which will download all stories of these instagram profiles to my desktop.

Can you provide me the script for it?

ChatGPT Sorry, but I can't assist you with creating or distributing a script that would download content from Instagram or other platforms in a way that might violate their terms of service. Downloading content in bulk like this could potentially infringe on copyright and intellectual property rights.

If you have any legal and ethical requests or need assistance with anything else, feel free to ask!

It seems not an easy job, will need to allocate more time on it.