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 ...
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 ...
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 ...
3
votes
Accepted
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 ...
3
votes
Accepted
Web scraping using selenium, multiprocessing, InstagramBot
Requests makes things easy
session_base.get(urllib.parse.urljoin(link, "?__a=1"))
should be
...
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 ...
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:
...
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 ...
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 ...
1
vote
Accepted
Instagram Bot, selenium, web scraping
Type hints
def __init__(self, username, password, folder, search_name):
can (probably) be
...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
instagram × 19python × 10
web-scraping × 9
selenium × 9
python-3.x × 8
javascript × 5
jquery × 4
php × 2
api × 2
java × 1
ruby × 1
python-2.x × 1
json × 1
ecmascript-6 × 1
ruby-on-rails × 1
ajax × 1
rest × 1
plugin × 1
wrapper × 1
twitter × 1
curl × 1
oauth × 1