-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc5add7
commit 9e22b22
Showing
6 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Instascrap | ||
|
||
[![Build Status](https://travis-ci.org/johnny-debt/instascrap.svg?branch=master)](https://travis-ci.org/johnny-debt/instascrap) [![Coverage Status](https://coveralls.io/repos/github/johnny-debt/instascrap/badge.svg?branch=t1-add-coverals-integration)](https://coveralls.io/github/johnny-debt/instascrap?branch=t1-add-coverals-integration) | ||
[![Build Status](https://travis-ci.org/johnny-debt/instascrap.svg?branch=master)](https://travis-ci.org/johnny-debt/instascrap) | ||
[![Coverage Status](https://coveralls.io/repos/github/johnny-debt/instascrap/badge.svg?branch=t1-add-coverals-integration)](https://coveralls.io/github/johnny-debt/instascrap?branch=t1-add-coverals-integration) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/johnny-debt/instascrap)](https://goreportcard.com/badge/github.com/johnny-debt/instascrap) | ||
|
||
Simple and reliable Instagram scrapper for | ||
Simple and reliable Instagram scrapper for educational purposes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ package instascrap | |
type Account struct { | ||
ID string | ||
Username string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package instascrap | ||
|
||
import ( | ||
"io/ioutil" | ||
"os" | ||
"path/filepath" | ||
"io/ioutil" | ||
) | ||
|
||
func getTestDataPath() string { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package instascrap | ||
|
||
import ( | ||
"testing" | ||
"github.com/stretchr/testify/assert" | ||
"testing" | ||
) | ||
|
||
func TestGetMediasFromHashtagPage(t *testing.T) { | ||
func TestGetMediasFromHashtagPage(t *testing.T) { | ||
json := ReadTestDataFile("test-01-get-medias-from-hashtag-page.json") | ||
medias, err := getFromHashtagPage(json) | ||
assert.Nil(t, err, "Error is unexpected") | ||
// We are expecting exactly 63 medias from the given JSON response | ||
assert.Len(t, medias, 63, "Medias count mismatch") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters