By might mean near, as in "she was sitting by the lake".
It might also be used to indicate who did something, for example "this book was written by my brother".
It might also be used to indicate who did something, for example "this book was written by my brother".
