Giter VIP home page Giter VIP logo

tikscraperphp's Introduction

Typing SVG

About me

arch lineage firefox vscode nextcloud

ℹī¸ You can know more about me and my skillsets on my website

receives patrons

Stats

My GitHub stats Top Langs

Entertainment

spotify-github-profile

trakt-github-card backloggd-github-card

tikscraperphp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tikscraperphp's Issues

Impossible to get user info / posts

This part of code fails in any case

$item = $api->user($userHandler);
$full = $item->feed()->getFull();
echo $full->toJson();

I suppose something change in signature or even with some securities on tiktok side. Do you have any ideas?

TikTok has changed something again?

It seems that the debug info doesn't share much light as to what's wrong?

Scraper v2.5.1.1 & Proxitok: v2.4.9.4

{
    "http_success": true,
    "code": 200,
    "origRes": {},
    "isJson": true,
    "isHtml": false,
    "jsonBody": {
        "statusCode": 0
    },
    "isChallenge": false,
    "rehidrateState": null
}

curl error 28: operation timed out after 60001 milliseconds with 0 bytes received

Hello guys
I have a problem, see if anyone can give me a light.
I'm running everything normally in a local version with proxy.
When I put it on my server with the same settings as the local test server. I get the curl error timed out, I've tried everything but I can't get it to work.

28: operation timed out after 60001 milliseconds with 0 bytes received

thanks !

Comment implementation Working

Hi @pablouser1,

Here a quick implementation for working comments:

    public function comments(int $cursor = 0) {
        $this->cursor = $cursor;
        $query = [
            'aweme_id' =>  $this->term,
            'count' =>  '20',
            'cursor'=> $this->cursor,
        ];
        $req = $this->sender->sendApi('/api/comment/list/', 'www', $query);
        dd($req);
    }

We need to change the header referer otherwise it doesn't work
Add '/' at the end make it work i didn't know why lol

class Sender {
    private const REFERER = 'https://www.tiktok.com/';

Hope that can help you.

src/Models/Meta.php:41 'Undefined property: stdClass::$SEO'

Hello!

Get error after call ->user(...)->feed()->getFeed():

pablouser1/tikscraper/src/Models/Meta.php, line 41
 'Undefined property: stdClass::$SEO'

Please added check property (isset) SEO in object $sigi:

Example fixes:

            if ($sigi) {
                if (isset($sigi->VideoPage, $sigi->VideoPage->statusCode)) {
                    $tiktok_code = $sigi->VideoPage->statusCode;
                }
                **if (isset($sigi->SEO)) {
                    $this->og = new \stdClass;
                    $this->og->title = $sigi->SEO->metaParams->title;
                    $this->og->description = $sigi->SEO->metaParams->description;
                }**
            }

Thanks!

Error

Parse error: syntax error, unexpected 'Sender' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in C:\xampp\htdocs\juicyphpt\vendor\pablouser1\tikscraper\src\Api.php on line 14

Get UserFeed with cursor Not working

Hi,

I tried to get user feed with a cursor and it doesn't work.
It looks like its the API calls that doesn't work maybe something change but i can't figure out what it is.

sendHTML => working with cursor=0
sendAPI => not working with cursor=0 or anything else

If someone know how to solve that issue.

Last UserInfo Feed without making an api call

Hi,

I don't know if its a good idea but its possible to get the last 30 posts (User feed) directly from SIGI_STATE and don't make an api call.
Maybe make a new function to get the last 30 posts or use the function feed and check if the cursor = 0 get from sigi_state?

SIGI_STATE:
List of posts : ItemList>user-post>list
Posts : ItemModule

Thank you a lot for your work <3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.