Skip to main content
6 votes
Accepted

Scraping Instagram - Download posts, photos - videos

More constants This: self.url: str = 'https://www.instagram.com/{name}/' appears to be a constant, so it can join the others in class scope. While you're ...
Reinderien's user avatar
  • 65.4k
4 votes
Accepted

Creating and updating link to instagram image or video

addOrUpdateImageLink() and addOrUpdateVideoLink() are essentially the same, therefore it would be better to create just one ...
Przemek's user avatar
  • 1,232
4 votes
Accepted

Scraping Instagram with selenium, extract URLs, download posts

Requests raising This pattern: if search.ok: ... else: search.raise_for_status() is redundant. Just call ...
Reinderien's user avatar
  • 65.4k
3 votes
Accepted

Instagram scraper Posts (Videos and Photos)

Error management This: ...
Reinderien's user avatar
  • 65.4k
3 votes
Accepted

Instagram Scraping Posts Using Selenium

Global constants chromedriver_path should be capitalized. Otherwise: I assume that you manually change it from None to some ...
Reinderien's user avatar
  • 65.4k
3 votes
Accepted

Web scraping using selenium, multiprocessing, InstagramBot

Requests makes things easy session_base.get(urllib.parse.urljoin(link, "?__a=1")) should be ...
Reinderien's user avatar
  • 65.4k
2 votes

Instagram PHP Library

It is hard to understand exactly what this class is intended to be used for. Overall, it seems like the class is doing a lot, including: - instantiating ...
Mike Brant's user avatar
  • 9,638
2 votes
Accepted

Instagram Scraping Using Selenium - Download Posts - Photos - Videos

Spacing I don't find it necessary for these two statements to occupy four lines each: ...
Reinderien's user avatar
  • 65.4k
1 vote
Accepted

Instagram Basic Display API Full Example PHP

Overall feedback It might be wise to put all the functions and constants into a class for the sake of encapsulation. That way the constants can be namespaced. Perhaps it would be wise to have a ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
1 vote
Accepted

Download pictures (or videos) from Instagram using Selenium

Class constants These: self.MAX_WORKERS: int = 8 self.N_PROCESSES: int = 8 should not be set as instance members; they should be static members, which ...
Reinderien's user avatar
  • 65.4k
1 vote
Accepted

Instagram Bot, selenium, web scraping

Type hints def __init__(self, username, password, folder, search_name): can (probably) be ...
Reinderien's user avatar
  • 65.4k
1 vote

Creating and updating link to instagram image or video

As is evidenced by the original version of the extension being broken by the HTML update, one drawback of this type of code is that it is brittle. Instagram could update the HTML of their site at ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
1 vote

Ruby wrapper for Instagram API

I find your code to be very good and readable :) In the code you present here, I only see one mishaps : raise 'Resource ID is required' unless id is repeated ...
Ronan Dhellemmes's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible